Trait Element

Source
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§

Source

type Node: Node<Element = Self>

Source

type Attribute: Attribute<Node = Self::Node>

Required Methods§

Source

fn as_node(&self) -> Self::Node

Source

fn prefix(&self) -> Option<Prefix>

Source

fn namespace(&self) -> Namespace

Source

fn local_name(&self) -> LocalName

Source

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.

Implementors§