Enum xml5ever::tokenizer::Token [] [src]

pub enum Token {
    DoctypeToken(Doctype),
    TagToken(Tag),
    PIToken(Pi),
    CommentToken(StrTendril),
    CharacterTokens(StrTendril),
    EOFToken,
    NullCharacterToken,
    ParseError(Cow<'static, str>),
}

Describes tokens encountered during parsing of input.

Variants

Doctype token

Token tag founds. This token applies to all possible kinds of tags (like start, end, empty tag, etc.).

Processing Instruction token

Comment token.

Token that represents a series of characters.

End of File found.

NullCharacter encountered.

Error happened

Trait Implementations

impl PartialEq for Token
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Token
[src]

impl Debug for Token
[src]

Formats the value using the given formatter.