Trait html5ever_ext::LocalNameExt [] [src]

pub trait LocalNameExt: Sized {
    fn qual_name(self) -> QualName;
fn attribute(self, value: &str) -> Attribute;
fn empty_node(self) -> UnattachedNode;
fn with_attributes(self, attributes: Vec<Attribute>) -> UnattachedNode;
fn with_attributes_and_text<S: Into<String>>(
        self,
        attributes: Vec<Attribute>,
        text: S
    ) -> UnattachedNode;
fn with_text<S: Into<String>>(self, text: S) -> UnattachedNode; fn empty_attribute(self) -> Attribute { ... }
fn with_classes<S: Deref<Target = str>>(
        self,
        classes: &[S]
    ) -> UnattachedNode { ... } }

Additional helpers to make LocalName more pleasant to work with

Required Methods

Turns a LocalName into a Local QualName

Turns a LocalName into an Attribute with a Local QualName and value

Turns a LocalName into an empty UnattachedNode

Turns a LocalName into an UnattachedNode with attributes

Turns a LocalName into an UnattachedNode with attributes and text

Turns a LocalName into an UnattachedNode with text

Provided Methods

Turns a LocalName into an Attribute with a Local QualName and no value

Turns a LocalName into an UnattachedNode with a class attribute

Implementors