pub struct RustdocSections {
pub summary: String,
pub arguments: Option<String>,
pub returns: Option<String>,
pub errors: Option<String>,
pub panics: Option<String>,
pub safety: Option<String>,
pub example: Option<String>,
}Expand description
A parsed rustdoc comment broken out into the sections binding emitters care about.
summary is the leading prose paragraph(s) before any # Heading.
Sections are stored verbatim (without the # Heading line itself);
each binding is responsible for translating bullet lists and code
fences into its host-native conventions.
Trailing/leading whitespace inside each field is trimmed so emitters
can concatenate without producing * lines containing only spaces.
Fields§
§summary: StringProse before the first # Section heading.
arguments: Option<String>Body of the # Arguments section, if present.
returns: Option<String>Body of the # Returns section, if present.
errors: Option<String>Body of the # Errors section, if present.
panics: Option<String>Body of the # Panics section, if present.
safety: Option<String>Body of the # Safety section, if present.
example: Option<String>Body of the # Example / # Examples section, if present.
Trait Implementations§
Source§impl Clone for RustdocSections
impl Clone for RustdocSections
Source§fn clone(&self) -> RustdocSections
fn clone(&self) -> RustdocSections
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RustdocSections
impl Debug for RustdocSections
Source§impl Default for RustdocSections
impl Default for RustdocSections
Source§fn default() -> RustdocSections
fn default() -> RustdocSections
Source§impl PartialEq for RustdocSections
impl PartialEq for RustdocSections
Source§fn eq(&self, other: &RustdocSections) -> bool
fn eq(&self, other: &RustdocSections) -> bool
self and other values to be equal, and is used by ==.