pub trait Attributable {
// Required methods
fn attributes(&self) -> Vec<&Attribute>;
fn all_attributes(&self) -> Vec<&Attribute>;
}Required Methods§
Sourcefn attributes(&self) -> Vec<&Attribute>
fn attributes(&self) -> Vec<&Attribute>
Returns the attributes of the element.
Sourcefn all_attributes(&self) -> Vec<&Attribute>
fn all_attributes(&self) -> Vec<&Attribute>
Returns all the attributes of the element and its parents.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".