Thanks to visit codestin.com Credit goes to doc.rust-lang.org
pub fn has_attr(attrs: &[Attribute], symbol: Symbol) -> bool