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
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§
source§impl PartialEq for Token
impl PartialEq for Token
impl Eq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl !Freeze for Token
impl !RefUnwindSafe for Token
impl !Send for Token
impl !Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more