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.