Enum xml5ever::tokenizer::Token [−][src]
pub enum Token {
DoctypeToken(Doctype),
TagToken(Tag),
PIToken(Pi),
CommentToken(StrTendril),
CharacterTokens(StrTendril),
EOFToken,
NullCharacterToken,
ParseError(Cow<'static, str>),
}
Expand description
Describes tokens encountered during parsing of input.
Variants
DoctypeToken(Doctype)
Doctype token
Tuple Fields of DoctypeToken
0: Doctype
TagToken(Tag)
Token tag founds. This token applies to all possible kinds of tags (like start, end, empty tag, etc.).
Tuple Fields of TagToken
0: Tag
PIToken(Pi)
Processing Instruction token
Tuple Fields of PIToken
0: Pi
CommentToken(StrTendril)
Comment token.
Tuple Fields of CommentToken
0: StrTendril
CharacterTokens(StrTendril)
Token that represents a series of characters.
Tuple Fields of CharacterTokens
0: StrTendril
End of File found.
NullCharacter encountered.
Error happened