pub fn find_attribute(&self, id: &str) -> Option<&Attribute> {
        self.elements.iter().find_map(|e| match e {
            Element::Attribute(attr) if attr.id == id => Some(attr),
            _ => None,
        })
    }
/// Finds a text attribute with the specified `id`.
Finds a text attribute with the specified `id`.
Finds a text attribute with the specified ` id ` .
pub fn find_attribute(&self, id: &str) -> Option<&Attribute> {
        self.elements.iter().find_map(|e| match e {
            Element::Attribute(attr) if attr.id == id => Some(attr),
            _ => None,
        })
    }
pub fn find_attribute ( & self , id : & str ) -> Option < & Attribute > { self . elements . iter ( ) . find_map ( | e | match e { Element :: Attribute ( attr ) if attr . id == id => Some ( attr ) , _ => None , } ) }
Finds a text attribute with the specified `id`.
Finds a text attribute with the specified ` id ` .
&self
id
&str
&self
id
&str