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

Finds an attribute as List and returns the list of attributes nested inside.

Implementations on Foreign Types

Return the span of the first doc-comment, if it exists.

Returns whether the first doc-comment is an inner attribute.

FIXME(#78591): Support both inner and outer attributes on the same item.

Implementors