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
fn qual_name(self) -> QualName
Turns a LocalName into a Local QualName
fn attribute(self, value: &str) -> Attribute
Turns a LocalName into an Attribute with a Local QualName and value
fn empty_node(self) -> UnattachedNode
Turns a LocalName into an empty UnattachedNode
fn with_attributes(self, attributes: Vec<Attribute>) -> UnattachedNode
Turns a LocalName into an UnattachedNode with attributes
fn with_attributes_and_text<S: Into<String>>(
self,
attributes: Vec<Attribute>,
text: S
) -> UnattachedNode
self,
attributes: Vec<Attribute>,
text: S
) -> UnattachedNode
Turns a LocalName into an UnattachedNode with attributes and text
fn with_text<S: Into<String>>(self, text: S) -> UnattachedNode
Turns a LocalName into an UnattachedNode with text
Provided Methods
fn empty_attribute(self) -> Attribute
Turns a LocalName into an Attribute with a Local QualName and no value
fn with_classes<S: Deref<Target = str>>(self, classes: &[S]) -> UnattachedNode
Turns a LocalName into an UnattachedNode with a class attribute
Implementors
impl LocalNameExt for LocalName