pub struct Config {
pub levels: Vec<usize>,
pub marker: String,
}
Expand description
Configuration for Table of Contents generation
Fields§
§levels: Vec<usize>
Levels for which chapter zero should be applied globally.
Defaults to [], which does not apply any global changes.
If set to [0], then the top level chapters will be 0 indexed.
If set to [1], then the first level of subchapters of ALL chapters
will be 0 indexed.
If set to [0, 1], then the top level chapters and the first level of
subchapters of ALL chapters will be 0 indexed.
All (sub-)chapters affected by this setting will ignore the marker
.
marker: String
Marker to signify that the direct children of this chapter should be 0 indexed.
Defaults to <!-- ch0 -->\n
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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