Enum docstrings::DocSection
[−]
[src]
pub enum DocSection { Parameters(Vec<(Identifier, Documentation)>), TypeParameters(Vec<(Identifier, Documentation)>), LifetimeParameters(Vec<(Identifier, Documentation)>), Returns(Documentation, Vec<(Pattern, Documentation)>), Custom(SectionHeadline, Documentation), }
Documentation sections
Variants
Parameters(Vec<(Identifier, Documentation)>)
Function parameters, mapping param name to docs
TypeParameters(Vec<(Identifier, Documentation)>)
Type parameters (generics), mapping ident of generic to docs
LifetimeParameters(Vec<(Identifier, Documentation)>)
Lifetime parameters, documenting the life and death of your times
Returns(Documentation, Vec<(Pattern, Documentation)>)
Return value documentation with optional list of enum variants.
Custom(SectionHeadline, Documentation)
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]
impl PartialEq for DocSection
[src]
fn eq(&self, __arg_0: &DocSection) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DocSection) -> bool
This method tests for !=
.
impl Eq for DocSection
[src]
impl Clone for DocSection
[src]
fn clone(&self) -> DocSection
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more