Trait StaticAttribute

Source
pub trait StaticAttribute {
    // Required method
    fn set_attribute(&self, name: impl AsRef<str>, dom_element: &Element);
}
Expand description

A non-reactive attribute.

Required Methods§

Source

fn set_attribute(&self, name: impl AsRef<str>, dom_element: &Element)

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.

Implementations on Foreign Types§

Source§

impl StaticAttribute for bool

Source§

fn set_attribute(&self, name: impl AsRef<str>, dom_element: &Element)

Source§

impl StaticAttribute for str

Source§

fn set_attribute(&self, name: impl AsRef<str>, dom_element: &Element)

Source§

impl StaticAttribute for String

Source§

fn set_attribute(&self, name: impl AsRef<str>, dom_element: &Element)

Implementors§