pub trait HasDocAttributes {
// Required methods
fn parse_doc_attributes(&self) -> Result<Vec<DocAttribute<'_>>, Error>;
fn get_doc_attributes(&self) -> Vec<&Attribute>;
}Expand description
Implemented on types that can have doc attributes
Required Methods§
Sourcefn parse_doc_attributes(&self) -> Result<Vec<DocAttribute<'_>>, Error>
fn parse_doc_attributes(&self) -> Result<Vec<DocAttribute<'_>>, Error>
Finds all doc attributes and parses them
Sourcefn get_doc_attributes(&self) -> Vec<&Attribute>
fn get_doc_attributes(&self) -> Vec<&Attribute>
Finds all doc attributes
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".