Trait ink_lang_ir::IsDocAttribute
source · [−]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
sourcefn is_doc_attribute(&self) -> bool
fn is_doc_attribute(&self) -> bool
Returns true
if the attribute is a Rust documentation attribute.
sourcefn extract_docs(&self) -> Option<String>
fn extract_docs(&self) -> Option<String>
Returns the contents of the Rust documentation attribute or None
.