rustc_ast::attr

Function contains_name

Source
pub fn contains_name(attrs: &[impl AttributeExt], name: Symbol) -> bool