Skip to main content

GetTableOfContents

Trait GetTableOfContents 

Source
pub trait GetTableOfContents {
    // Required method
    fn get_table_of_contents(
        &self,
        filter: &Option<(HashSet<TableOfContentsItemType>, TableOfContentsFilterType)>,
    ) -> Option<TableOfContentsItem>;
}
Expand description

Generate a table of contents from a part of a document.

Required Methods§

Source

fn get_table_of_contents( &self, filter: &Option<(HashSet<TableOfContentsItemType>, TableOfContentsFilterType)>, ) -> Option<TableOfContentsItem>

If a filter is supplied, an item must be of a type present in the filter to get included.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl GetTableOfContents for Result<CodeBlock, CodeIdentError>

Implementors§