Struct rustdoc::html::toc::TocBuilder
[−]
[src]
pub struct TocBuilder { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (
rustdoc
)Progressive construction of a table of contents.
Methods
impl TocBuilder
[src]
fn new() -> TocBuilder
🔬 This is a nightly-only experimental API. (
rustdoc
)fn into_toc(self) -> Toc
🔬 This is a nightly-only experimental API. (
rustdoc
)Convert into a true Toc
struct.
fn push<'a>(&'a mut self, level: u32, name: String, id: String) -> &'a str
🔬 This is a nightly-only experimental API. (
rustdoc
)Push a level level
heading into the appropriate place in the
hierarchy, returning a string containing the section number in
<num>.<num>.<num>
format.
Trait Implementations
impl PartialEq for TocBuilder
[src]
fn eq(&self, __arg_0: &TocBuilder) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TocBuilder) -> bool
This method tests for !=
.