sycamore::web

Trait AttributeValue

pub trait AttributeValue: AttributeValueBoxed + 'static {
    // Required method
    fn set_self(self, el: &mut SsrNode, 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§

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

Trait Implementations§

§

impl AttributeValue for Box<dyn AttributeValue>

§

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

Implementations on Foreign Types§

§

impl AttributeValue for Box<dyn AttributeValue>

§

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

Implementors§