pub(crate) trait AttributesExt {
type AttributeIterator<'a>: Iterator<Item = NestedMetaItem>
where
Self: 'a;
fn lists<'a>(&'a self, name: Symbol) -> Self::AttributeIterator<'a>;
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>>;
}Required Associated Types
type AttributeIterator<'a>: Iterator<Item = NestedMetaItem>
where
Self: 'a
Required Methods
fn lists<'a>(&'a self, name: Symbol) -> Self::AttributeIterator<'a>
fn inner_docs(&self) -> bool
Implementations on Foreign Types
sourceimpl AttributesExt for [Attribute]
impl AttributesExt for [Attribute]
sourcefn inner_docs(&self) -> bool
fn inner_docs(&self) -> bool
Returns whether the first doc-comment is an inner attribute.
FIXME(#78591): Support both inner and outer attributes on the same item.
type AttributeIterator<'a> = impl Iterator<Item = NestedMetaItem> + 'a
fn lists<'a>(&'a self, name: Symbol) -> Self::AttributeIterator<'a>
fn other_attrs(&self) -> Vec<Attribute>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,