pub enum Token {
Doctype(Doctype),
Tag(Tag),
ProcessingInstruction(Pi),
Comment(StrTendril),
Characters(StrTendril),
EndOfFile,
NullCharacter,
ParseError(Cow<'static, str>),
}
Expand description
Describes tokens encountered during parsing of input.
Variants§
Doctype(Doctype)
Doctype token
Tag(Tag)
Token tag founds. This token applies to all possible kinds of tags (like start, end, empty tag, etc.).
ProcessingInstruction(Pi)
Processing Instruction token
Comment(StrTendril)
Comment token.
Characters(StrTendril)
Token that represents a series of characters.
EndOfFile
End of File found.
NullCharacter
NullCharacter encountered.
ParseError(Cow<'static, str>)
Error happened
Trait Implementations§
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