Struct rustdoc::html::toc::Toc[][src]

pub struct Toc {
    entries: Vec<TocEntry>,
}

A (recursive) table of contents

Fields

The levels are strictly decreasing, i.e.

entries[0].level >= entries[1].level >= ...

Normally they are equal, but can differ in cases like A and B, both of which end up in the same Toc as they have the same parent (Main).

# Main
### A
## B

Methods

impl Toc
[src]

Trait Implementations

impl PartialEq for Toc
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Toc
[src]

Formats the value using the given formatter. Read more

impl Display for Toc
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Toc

impl Sync for Toc