Struct xml5ever::tokenizer::Tag
[−]
[src]
pub struct Tag { pub kind: TagKind, pub name: QName, pub attrs: Vec<Attribute>, }
XML 5 Tag Token
Fields
kind: TagKind
Token kind denotes which type of token was encountered.
E.g. if parser parsed </a>
the token kind would be EndTag
.
name: QName
Qualified name of the tag.
attrs: Vec<Attribute>
List of attributes attached to this tag. Only valid in start and empty tag.
Methods
impl Tag
[src]
fn equiv_modulo_attr_order(&self, other: &Tag) -> bool
Sorts attributes in a tag.
Trait Implementations
impl PartialEq for Tag
[src]
fn eq(&self, __arg_0: &Tag) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Tag) -> bool
This method tests for !=
.
impl Eq for Tag
[src]
impl Debug for Tag
[src]
impl Clone for Tag
[src]
fn clone(&self) -> Tag
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more