Enum docstrings::DocSection [] [src]

pub enum DocSection {
    Parameters(Vec<(Identifier, Documentation)>),
    TypeParameters(Vec<(Identifier, Documentation)>),
    LifetimeParameters(Vec<(Identifier, Documentation)>),
    Returns(DocumentationVec<(Pattern, Documentation)>),
    Custom(SectionHeadlineDocumentation),
}

Documentation sections

Variants

Function parameters, mapping param name to docs

Type parameters (generics), mapping ident of generic to docs

Lifetime parameters, documenting the life and death of your times

Return value documentation with optional list of enum variants.

Custom/unknown sections, mapping headlines to docs

In the future, some of the sections currently treated as 'custom' may be added as new variants, e.g. 'Examples', or 'Panics'.

Trait Implementations

impl Debug for DocSection
[src]

Formats the value using the given formatter.

impl PartialEq for DocSection
[src]

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

This method tests for !=.

impl Eq for DocSection
[src]

impl Clone for DocSection
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for DocSection
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more