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,
tcx: TyCtxt<'_>,
hidden_cfg: &FxHashSet<Cfg>
) -> 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;
fn lists(&self, name: Symbol) -> ListAttributesIter<'_>ⓘNotable traits for ListAttributesIter<'a>impl<'a> Iterator for ListAttributesIter<'a> type Item = NestedMetaItem;
Notable traits for ListAttributesIter<'a>
impl<'a> Iterator for ListAttributesIter<'a> type Item = NestedMetaItem;
Finds an attribute as List and returns the list of attributes nested inside.
fn inner_docs(&self) -> bool
fn other_attrs(&self) -> Vec<Attribute>
Implementations on Foreign Types
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;
Notable traits for ListAttributesIter<'a>
impl<'a> Iterator for ListAttributesIter<'a> type Item = NestedMetaItem;