Struct pulldown_cmark_toc::Options
source · pub struct Options { /* private fields */ }
Expand description
Configuration options to use when rendering the Table of Contents.
§Examples
let options = Options::default()
.item_symbol(ItemSymbol::Asterisk)
.levels(HeadingLevel::H2..=HeadingLevel::H6)
.indent(4);
Implementations§
source§impl Options
impl Options
sourcepub fn item_symbol(self, item_symbol: ItemSymbol) -> Self
pub fn item_symbol(self, item_symbol: ItemSymbol) -> Self
The symbol to use for Table of Contents list items.
sourcepub fn levels(self, levels: RangeInclusive<HeadingLevel>) -> Self
pub fn levels(self, levels: RangeInclusive<HeadingLevel>) -> Self
Only levels in the given range will be rendered.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl !RefUnwindSafe for Options
impl !Send for Options
impl !Sync for Options
impl Unpin for Options
impl !UnwindSafe for Options
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