pub trait IsDocAttribute {
    fn is_doc_attribute(&self) -> bool;
    fn extract_docs(&self) -> Option<String>;
}
Expand description

An extension trait for syn::Attribute in order to query for documentation.

Required Methods

Returns true if the attribute is a Rust documentation attribute.

Returns the contents of the Rust documentation attribute or None.

Implementations on Foreign Types

Implementors