pub enum Token<'t> {
Ignore(Ignore<'t>),
Keyword(Keyword),
Symbol(Symbol),
Identifier(Identifier<'t>),
Literal(Literal<'t>),
Operator(Operator),
Unknown,
}
Variants§
Ignore(Ignore<'t>)
Keyword(Keyword)
Symbol(Symbol)
Identifier(Identifier<'t>)
Literal(Literal<'t>)
Operator(Operator)
Unknown
Implementations§
Trait Implementations§
Source§impl<'t> From<Identifier<'t>> for Token<'t>
impl<'t> From<Identifier<'t>> for Token<'t>
Source§fn from(value: Identifier<'t>) -> Self
fn from(value: Identifier<'t>) -> Self
Converts to this type from the input type.
Source§impl<'t> Original<Token<'t>> for TokenStream<'t>
impl<'t> Original<Token<'t>> for TokenStream<'t>
impl<'t> Copy for Token<'t>
impl<'t> StructuralPartialEq for Token<'t>
Auto Trait Implementations§
impl<'t> Freeze for Token<'t>
impl<'t> RefUnwindSafe for Token<'t>
impl<'t> Send for Token<'t>
impl<'t> Sync for Token<'t>
impl<'t> Unpin for Token<'t>
impl<'t> UnwindSafe for Token<'t>
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