pub trait Element {
type Node: Node<Element = Self>;
type Attribute: Attribute<Node = Self::Node>;
// Required methods
fn as_node(&self) -> Self::Node;
fn prefix(&self) -> Option<Prefix>;
fn namespace(&self) -> Namespace;
fn local_name(&self) -> LocalName;
fn attributes(&self) -> impl Iterator<Item = Self::Attribute>;
}
Required Associated Types§
Required Methods§
fn as_node(&self) -> Self::Node
fn prefix(&self) -> Option<Prefix>
fn namespace(&self) -> Namespace
fn local_name(&self) -> LocalName
fn attributes(&self) -> impl Iterator<Item = Self::Attribute>
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.