Trait freya::prelude::HasAttributes

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§

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

Object Safety§

This trait is not object safe.

Implementors§