/// Helper function to find an attribute by name.
Helper function to find an attribute by name.
Helper function to find an attribute by name .
pub fn find_attr<'a>(attrs: &'a Attributes, name: &str) -> Option<&'a Attribute> {
    attrs
        .value
        .iter()
        .find(|a| a.value.attribute_name().value.as_str() == name)
}
pub fn find_attr < ' a > ( attrs : & ' a Attributes , name : & str ) -> Option < & ' a Attribute > { attrs . value . iter ( ) . find ( | a | a . value . attribute_name ( ) . value . as_str ( ) == name ) }
Helper function to find an attribute by name.
Helper function to find an attribute by name .
attrs
&'a Attributes
name
&str