pub fn doc_string(attrs: &[Attribute]) -> Result<Option<Spanning<String>>>Expand description
Lookups for the standard Rust #[doc] attributes in the given
syn::Attributes and parses their text as String with a little
normalization.
§Errors
- If parsing text from
#[doc]attribute fails. - If
#[doc]doesn’t contain text.