pub enum DocSection {
Parameters(Vec<(Identifier, Documentation)>),
TypeParameters(Vec<(Identifier, Documentation)>),
LifetimeParameters(Vec<(Identifier, Documentation)>),
Returns(Documentation, Vec<(Pattern, Documentation)>),
Custom(SectionHeadline, Documentation),
}Expand description
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§
Source§impl Clone for DocSection
impl Clone for DocSection
Source§fn clone(&self) -> DocSection
fn clone(&self) -> DocSection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocSection
impl Debug for DocSection
Source§impl Hash for DocSection
impl Hash for DocSection
Source§impl PartialEq for DocSection
impl PartialEq for DocSection
impl Eq for DocSection
impl StructuralPartialEq for DocSection
Auto Trait Implementations§
impl Freeze for DocSection
impl RefUnwindSafe for DocSection
impl Send for DocSection
impl Sync for DocSection
impl Unpin for DocSection
impl UnwindSafe for DocSection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more