3 use std::ops::{Deref, DerefMut};
5 #[derive(Debug, Clone)]
10 #[derive(Debug, Clone)]
11 pub struct TitleList {
12 pub members: Vec<Title>,
16 pub fn new() -> Self {
17 TitleList { members: Vec::new() }
21 impl Deref for TitleList {
22 type Target = Vec<Title>;
24 fn deref(&self) -> &Self::Target {
29 // @has foo/struct.TitleList.html
30 // @has - '//*[@class="sidebar-title"]' 'Methods from Deref<Target=Vec<Title>>'
31 impl DerefMut for TitleList {
32 fn deref_mut(&mut self) -> &mut Self::Target {