pub(crate) trait AttributesExt {
    type AttributeIterator: Iterator<Item = NestedMetaItem>;
    fn lists<'a>(&'a self, name: Symbol) -> Self::AttributeIterator;
fn span(&self) -> Option<Span>;
fn inner_docs(&self) -> bool;
fn other_attrs(&self) -> Vec<Attribute>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator, 
;
fn cfg(
        &self,
        tcx: TyCtxt<'_>,
        hidden_cfg: &FxHashSet<Cfg>
    ) -> Option<Arc<Cfg>>; }

Associated Types

Required methods

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