Trait AttributeValue

Source
pub trait AttributeValue: AttributeValueBoxed + 'static {
    // Required method
    fn set_self(self, el: &mut HtmlNode, name: Cow<'static, str>);
}
Expand description

A trait that represents an attribute that can be set. This is not “attribute” in the HTML spec sense. It can also represent JS properties (and possibly more …) that can be set on an HTML element.

Required Methods§

Source

fn set_self(self, el: &mut HtmlNode, name: Cow<'static, str>)

Trait Implementations§

Source§

impl AttributeValue for Box<dyn AttributeValue>

Source§

fn set_self(self, el: &mut HtmlNode, name: Cow<'static, str>)

Implementations on Foreign Types§

Source§

impl AttributeValue for MaybeDyn<JsValue>

Source§

fn set_self(self, el: &mut HtmlNode, name: Cow<'static, str>)

Source§

impl AttributeValue for Box<dyn AttributeValue>

Source§

fn set_self(self, el: &mut HtmlNode, name: Cow<'static, str>)

Implementors§