markup5ever::interface::tree_builder

Trait ElemName

Source
pub trait ElemName: Debug {
    // Required methods
    fn ns(&self) -> &Namespace;
    fn local_name(&self) -> &LocalName;

    // Provided method
    fn expanded(&self) -> ExpandedName<'_> { ... }
}
Expand description

An abstraction over any type that can represent an element’s local name and namespace.

Required Methods§

Source

fn ns(&self) -> &Namespace

Source

fn local_name(&self) -> &LocalName

Provided Methods§

Source

fn expanded(&self) -> ExpandedName<'_>

Implementations on Foreign Types§

Source§

impl<'a> ElemName for Ref<'a, ExpandedName<'a>>

Source§

impl<'a> ElemName for Ref<'a, QualName>

Implementors§

Source§

impl<'a> ElemName for &'a QualName

Source§

impl<'a> ElemName for ExpandedName<'a>