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
DoctypeToken(Doctype)
Doctype token
TagToken(Tag)
Token tag founds. This token applies to all possible kinds of tags (like start, end, empty tag, etc.).
PIToken(Pi)
Processing Instruction token
CommentToken(StrTendril)
Comment token.
CharacterTokens(StrTendril)
Token that represents a series of characters.
EOFToken
End of File found.
NullCharacterToken
NullCharacter encountered.
ParseError(Cow<'static, str>)
Error happened
Trait Implementations
impl PartialEq for Token
[src]
fn eq(&self, __arg_0: &Token) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Token) -> bool
This method tests for !=
.