pub enum TokenType<'a> {
Parenthesis {
is_left: bool,
},
Brace {
is_left: bool,
},
Bracket {
is_left: bool,
},
Operator(&'a str),
Identifier(&'a str),
NumberLiteral(&'a str, Option<&'a str>),
StringLiteral(&'a str, bool),
CharLiteral(&'a str, bool),
Keyword(Keyword),
}Variants§
Parenthesis
Brace
Bracket
Operator(&'a str)
Identifier(&'a str)
NumberLiteral(&'a str, Option<&'a str>)
StringLiteral(&'a str, bool)
CharLiteral(&'a str, bool)
Keyword(Keyword)
Trait Implementations§
impl<'a> Eq for TokenType<'a>
impl<'a> StructuralPartialEq for TokenType<'a>
Auto Trait Implementations§
impl<'a> Freeze for TokenType<'a>
impl<'a> RefUnwindSafe for TokenType<'a>
impl<'a> Send for TokenType<'a>
impl<'a> Sync for TokenType<'a>
impl<'a> Unpin for TokenType<'a>
impl<'a> UnwindSafe for TokenType<'a>
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