pub trait HtmlElementExt: AsRef<HtmlElement> + Clone {
// Provided methods
fn create(tag: impl AsRef<str>) -> Self
where Self: JsCast { ... }
fn css(&self, property: impl AsRef<str>, value: impl AsRef<str>) -> Self { ... }
fn ocss(&self, property: impl AsRef<str>, value: Option<&str>) -> Self { ... }
}Provided Methods§
fn create(tag: impl AsRef<str>) -> Selfwhere
Self: JsCast,
fn css(&self, property: impl AsRef<str>, value: impl AsRef<str>) -> Self
fn ocss(&self, property: impl AsRef<str>, value: Option<&str>) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".