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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.