/// Test if the attribute is cooked.
Test if the attribute is cooked.
Test if the attribute is cooked .
pub fn is_cooked(attr: &Attribute) -> bool {
    const COOKED_ATTRIBUTE_NAMES: &[&str] = &[
        "cfg", "cfg_attr", "derive", "inline", "allow", "warn", "deny", "forbid",
    ];
    COOKED_ATTRIBUTE_NAMES.iter().any(|n| attr.path.is_ident(n))
}
pub fn is_cooked ( attr : & Attribute ) -> bool { const COOKED_ATTRIBUTE_NAMES : & [ & str ] = & [ " " , " " , " " , " " , " " , " " , " " , " " , ] ; COOKED_ATTRIBUTE_NAMES . iter ( ) . any ( | n | attr . path . is_ident ( n ) ) }
Test if the attribute is cooked.
Test if the attribute is cooked .
attr
&Attribute