pub fn add_attribute(&mut self, key: &'static str, value: impl Into<AttrValue>) {
        self.attributes
            .get_mut_index_map()
            .insert(key, value.into());
    }
/// Adds a key-value pair to attributes
///
/// Not every attribute works when it set as an attribute. We use workarounds for:
/// `value` and `checked`.
Adds a key-value pair to attributes
Not every attribute works when it set as an attribute. We use workarounds for:
`value` and `checked`.
Adds a key - value pair to attributes Not every attribute works when it set as an attribute . We use workarounds for : ` value ` and ` checked ` .
pub fn add_attribute(&mut self, key: &'static str, value: impl Into<AttrValue>) {
        self.attributes
            .get_mut_index_map()
            .insert(key, value.into());
    }
pub fn add_attribute ( & mut self , key : & ' static str , value : impl Into < AttrValue > ) { self . attributes . get_mut_index_map ( ) . insert ( key , value . into ( ) ) ; }
Adds a key-value pair to attributes
Not every attribute works when it set as an attribute.
Adds a key - value pair to attributes Not every attribute works when it set as an attribute .
&mut self
key
&'static str
value
impl Into<AttrValue>
&mut self
key
&'static str
value
impl Into<AttrValue>