pub enum Toc {
FromHeadings {
max_level: u8,
},
Explicit(Vec<TocItem>),
}Expand description
The table of contents of a Book.
Variants§
FromHeadings
Built from the headings of every chapter when the book is written.
Explicit(Vec<TocItem>)
Written as given. Every item must lead somewhere when the book is written.
Trait Implementations§
impl Eq for Toc
impl StructuralPartialEq for Toc
Auto Trait Implementations§
impl Forget for Toc
impl Freeze for Toc
impl Move for Toc
impl RefUnwindSafe for Toc
impl Send for Toc
impl Sync for Toc
impl Unpin for Toc
impl UnsafeUnpin for Toc
impl UnwindSafe for Toc
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