Trait rustdoc::clean::types::AttributesExt
source · pub(crate) trait AttributesExt {
type AttributeIterator<'a>: Iterator<Item = NestedMetaItem>
where Self: 'a;
type Attributes<'a>: Iterator<Item = &'a Attribute>
where Self: 'a;
// Required methods
fn lists<'a>(&'a self, name: Symbol) -> Self::AttributeIterator<'a>;
fn iter<'a>(&'a self) -> Self::Attributes<'a>;
// Provided method
fn cfg(
&self,
tcx: TyCtxt<'_>,
hidden_cfg: &FxHashSet<Cfg>
) -> Option<Arc<Cfg>> { ... }
}