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

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

A (recursive) table of contents

Fields

entries: Vec<TocEntry>

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

Implementations

impl Toc[src]

pub(in html::toc) fn count_entries_with_level(
    &self,
    level: u32
) -> usize
[src]

impl Toc[src]

pub(in html::toc) fn print_inner(
    &self,
    v: &mut String
)
[src]

pub(crate) fn print(&self) -> String[src]

Trait Implementations

impl Debug for Toc[src]

impl PartialEq<Toc> for Toc[src]

impl StructuralPartialEq for Toc[src]

Auto Trait Implementations

impl RefUnwindSafe for Toc

impl Send for Toc

impl Sync for Toc

impl Unpin for Toc

impl UnwindSafe for Toc

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithConstness for T[src]