Struct rustdoc::html::toc::TocBuilderUnstable [-] [+] [src]

pub struct TocBuilder {
    // some fields omitted
}

Progressive construction of a table of contents.

Methods

impl TocBuilder

fn new() -> TocBuilder

fn into_toc(self) -> Toc

Convert into a true Toc struct.

fn push<'a>(&'a mut self, level: u32, name: String, id: String) -> &'a str

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

Derived Implementations

impl PartialEq for TocBuilder

fn eq(&self, __arg_0: &TocBuilder) -> bool

fn ne(&self, __arg_0: &TocBuilder) -> bool