Struct html5ever::tokenizer::Tag [] [src]

pub struct Tag {
    pub kind: TagKind,
    pub name: Atom,
    pub self_closing: bool,
    pub attrs: Vec<Attribute>,
}

A tag token.

Fields

kind: TagKind name: Atom self_closing: bool attrs: Vec<Attribute>

Methods

impl Tag
[src]

fn equiv_modulo_attr_order(&self, other: &Tag) -> bool

Are the tags equivalent when we don't care about attribute order? Also ignores the self-closing flag.

Trait Implementations

impl Debug for Tag
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

impl Eq for Tag
[src]

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 !=.