pub trait HasAttribute: AsRawSs {
    fn get_attr(&self, attr_kind: AttrKind) -> Result<Attribute> { ... }
    fn set_attr(&self, attr: impl Into<Attribute>) -> Result<()> { ... }
}

Provided Methods

if want a specific attribute, use AttrInner::get_from

Implementors