pub struct TocMaker {
pub level: u8,
pub list_type: ListType,
}
Expand description
The struct to make a table of contents.
Fields§
§level: u8
The maximum level of the table of contents. Default is 3.
list_type: ListType
The type of the list. Default is
ListType::Unordered
.
Implementations§
Source§impl TocMaker
impl TocMaker
Sourcepub fn make_toc<'a>(&self, input: &mut DocumentNode<'a>) -> DocumentNode<'a>
pub fn make_toc<'a>(&self, input: &mut DocumentNode<'a>) -> DocumentNode<'a>
Make a table of contents.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TocMaker
impl RefUnwindSafe for TocMaker
impl Send for TocMaker
impl Sync for TocMaker
impl Unpin for TocMaker
impl UnwindSafe for TocMaker
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