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