pub enum Token<'input> {
ProcessingInstruction(&'input str, Option<&'input str>, Range<usize>),
Comment(&'input str, Range<usize>),
EntityDeclaration(&'input str, StrSpan<'input>),
ElementStart(&'input str, &'input str, usize),
Attribute(Range<usize>, u16, u8, &'input str, &'input str, StrSpan<'input>),
ElementEnd(ElementEnd<'input>, Range<usize>),
Text(&'input str, Range<usize>),
Cdata(&'input str, Range<usize>),
}
Variants§
ProcessingInstruction(&'input str, Option<&'input str>, Range<usize>)
Comment(&'input str, Range<usize>)
EntityDeclaration(&'input str, StrSpan<'input>)
ElementStart(&'input str, &'input str, usize)
Attribute(Range<usize>, u16, u8, &'input str, &'input str, StrSpan<'input>)
ElementEnd(ElementEnd<'input>, Range<usize>)
Text(&'input str, Range<usize>)
Cdata(&'input str, Range<usize>)
Auto Trait Implementations§
impl<'input> Freeze for Token<'input>
impl<'input> RefUnwindSafe for Token<'input>
impl<'input> Send for Token<'input>
impl<'input> Sync for Token<'input>
impl<'input> Unpin for Token<'input>
impl<'input> UnwindSafe for Token<'input>
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