rustc_ast::attr

Function filter_by_name

Source
pub fn filter_by_name<A: AttributeExt>(
    attrs: &[A],
    name: Symbol,
) -> impl Iterator<Item = &A>