pub trait TypedElement {
type Attributes;
// Required methods
fn from_attributes(
attributes: Self::Attributes,
other_attributes: Vec<(String, Option<String>)>,
) -> Self;
fn into_node(self, children: Option<Vec<Node>>) -> Node;
}
Available on crate feature
typed
only.Expand description
A typed HTML element.
Required Associated Types§
Sourcetype Attributes
type Attributes
The attributes of the element.
Required Methods§
Sourcefn from_attributes(
attributes: Self::Attributes,
other_attributes: Vec<(String, Option<String>)>,
) -> Self
fn from_attributes( attributes: Self::Attributes, other_attributes: Vec<(String, Option<String>)>, ) -> Self
Create an element from its attributes.
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.