Skip to main content

Attributable

Trait Attributable 

Source
pub trait Attributable {
    // Required methods
    fn attributes(&self) -> Vec<&Attribute>;
    fn all_attributes(&self) -> Vec<&Attribute>;
}

Required Methods§

Source

fn attributes(&self) -> Vec<&Attribute>

Returns the attributes of the element.

Source

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".

Implementors§