rustc_ast::attr

Function find_by_name

Source
pub fn find_by_name(attrs: &[Attribute], name: Symbol) -> Option<&Attribute>