pub enum Token {
Char(char),
StartTag(StartTag),
EndTag(EndTag),
Comment(String),
Doctype(Doctype),
EndOfFile,
}
Expand description
A type for the tokens emitted by a WHATWG-compliant HTML tokenizer.
Variants§
Char(char)
A literal character, a resolved character reference,
or part of a resolved character reference (since some
character references resolve to two char
s).
StartTag(StartTag)
An HTML start tag.
EndTag(EndTag)
An HTML end tag.
Comment(String)
An HTML comment.
Doctype(Doctype)
An HTML doctype declaration.
EndOfFile
An end-of-file token.
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