pub trait Common: WithAttribute {
// Provided methods
fn id(self, id: impl Into<Cow<'static, str>>) -> Self::Output<Id> { ... }
fn class(self, class: impl Into<Cow<'static, str>>) -> Self::Output<Class> { ... }
fn replace_class(
self,
class: impl Into<Cow<'static, str>>,
) -> Self::Output<Class> { ... }
fn on_click<E>(self, event: E) -> Self::Output<OnClick>
where E: Serialize + 'static { ... }
}
Provided Methods§
Sourcefn id(self, id: impl Into<Cow<'static, str>>) -> Self::Output<Id>
fn id(self, id: impl Into<Cow<'static, str>>) -> Self::Output<Id>
Unique identifier across the document.
Sourcefn class(self, class: impl Into<Cow<'static, str>>) -> Self::Output<Class>
fn class(self, class: impl Into<Cow<'static, str>>) -> Self::Output<Class>
The various classes that the element belongs to.
fn replace_class( self, class: impl Into<Cow<'static, str>>, ) -> Self::Output<Class>
fn on_click<E>(self, event: E) -> Self::Output<OnClick>where
E: Serialize + 'static,
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.