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§

source

fn is_doc_attribute(&self) -> bool

Returns true if the attribute is a Rust documentation attribute.

source

fn extract_docs(&self) -> Option<String>

Returns the contents of the Rust documentation attribute or None.

Implementations on Foreign Types§

source§

impl IsDocAttribute for Attribute

Implementors§