Trait HasAttributes

Source
pub trait HasAttributes {
    // Required method
    fn push_attribute<T>(
        self,
        name: &'static str,
        ns: Option<&'static str>,
        attr: impl IntoAttributeValue<T>,
        volatile: bool,
    ) -> Self;
}
Expand description

A trait for anything that has a dynamic list of attributes

Required Methods§

Source

fn push_attribute<T>( self, name: &'static str, ns: Option<&'static str>, attr: impl IntoAttributeValue<T>, volatile: bool, ) -> Self

Push an attribute onto the list of attributes

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§