rustc_ast::attr

Function find_by_name

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