Enum kodept_parse::lexer::enums::Token
source · 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(original: Identifier<'t>) -> Token<'t>
fn from(original: Identifier<'t>) -> Token<'t>
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>
source§impl<'t> PartialEq for Token<'t>
impl<'t> PartialEq for Token<'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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)