pub(crate) trait AttributesExt {
type AttributeIterator<'a>: Iterator<Item = MetaItemInner>
where Self: 'a;
type Attributes<'a>: Iterator<Item = &'a Attribute>
where Self: 'a;
// Required methods
fn lists(&self, name: Symbol) -> Self::AttributeIterator<'_>;
fn iter(&self) -> Self::Attributes<'_>;
// Provided method
fn cfg(
&self,
tcx: TyCtxt<'_>,
hidden_cfg: &FxHashSet<Cfg>,
) -> Option<Arc<Cfg>> { ... }
}
Required Associated Types§
type AttributeIterator<'a>: Iterator<Item = MetaItemInner> where Self: 'a
type Attributes<'a>: Iterator<Item = &'a Attribute> where Self: 'a
Required Methods§
fn lists(&self, name: Symbol) -> Self::AttributeIterator<'_>
fn iter(&self) -> Self::Attributes<'_>
Provided Methods§
Object Safety§
This trait is not object safe.