Enum html5tokenizer::token::Token
source · 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§
source§impl PartialEq for Token
impl PartialEq for Token
impl Eq for Token
impl StructuralEq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
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