Trait rustdoc::clean::types::AttributesExt [−][src]
pub(crate) trait AttributesExt {
fn lists(&self, name: Symbol) -> ListAttributesIter<'_>ⓘNotable traits for ListAttributesIter<'a>
impl<'a> Iterator for ListAttributesIter<'a> type Item = NestedMetaItem;;
fn span(&self) -> Option<Span>;
fn inner_docs(&self) -> bool;
fn other_attrs(&self) -> Vec<Attribute>;
fn cfg(&self, sess: &Session) -> Option<Arc<Cfg>>;
}Required methods
fn lists(&self, name: Symbol) -> ListAttributesIter<'_>ⓘNotable traits for ListAttributesIter<'a>
impl<'a> Iterator for ListAttributesIter<'a> type Item = NestedMetaItem;[src]
Notable traits for ListAttributesIter<'a>
impl<'a> Iterator for ListAttributesIter<'a> type Item = NestedMetaItem;Expand description
Finds an attribute as List and returns the list of attributes nested inside.
fn span(&self) -> Option<Span>[src]
fn inner_docs(&self) -> bool[src]
fn other_attrs(&self) -> Vec<Attribute>[src]
fn cfg(&self, sess: &Session) -> Option<Arc<Cfg>>[src]
Implementations on Foreign Types
impl AttributesExt for [Attribute][src]
impl AttributesExt for [Attribute][src]fn inner_docs(&self) -> bool[src]
fn inner_docs(&self) -> bool[src]Returns whether the first doc-comment is an inner attribute.
FIXME(#78591): Support both inner and outer attributes on the same item.
fn lists(&self, name: Symbol) -> ListAttributesIter<'_>ⓘNotable traits for ListAttributesIter<'a>
impl<'a> Iterator for ListAttributesIter<'a> type Item = NestedMetaItem;[src]
Notable traits for ListAttributesIter<'a>
impl<'a> Iterator for ListAttributesIter<'a> type Item = NestedMetaItem;