/// Helper function to find an attribute in a slice.
Helper function to find an attribute in a slice.
Helper function to find an attribute in a slice .
pub fn find_attr_slice<'a>(vec: &'a [Attributes], name: &str) -> Option<&'a Attribute> {
    for attrs in vec {
        if let Some(a) = find_attr(attrs, name) {
            return Some(a);
        }
    }
    None
}
pub fn find_attr_slice < ' a > ( vec : & ' a [ Attributes ] , name : & str ) -> Option < & ' a Attribute > { for attrs in vec { if let Some ( a ) = find_attr ( attrs , name ) { return Some ( a ) ; } } None }
Helper function to find an attribute in a slice.
Helper function to find an attribute in a slice .
vec
&'a [Attributes]
name
&str