pub struct PageList {
pub items: IndexMap<String, ListItem>,
}Fields§
§items: IndexMap<String, ListItem>Implementations§
Source§impl PageList
impl PageList
pub fn first_page_path(&self) -> Option<PagePath>
pub fn add_pages(&self, project: &mut Project)
pub fn add_page_paths<'m>(&'m self, list: &mut Vec<&'m PagePath>)
pub fn previous(&self, current_page: &PagePath) -> Option<&PagePath>
pub fn next(&self, current_page: &PagePath) -> Option<&PagePath>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PageList
impl<'de> Deserialize<'de> for PageList
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PageList
impl RefUnwindSafe for PageList
impl Send for PageList
impl Sync for PageList
impl Unpin for PageList
impl UnwindSafe for PageList
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more