pub enum TokenType {
Show 30 variants
Identifier,
Integer,
Float,
Bool,
Char,
String,
Func,
Let,
Return,
HardwareMap,
Plus,
Minus,
Times,
Assign,
LeftPar,
RightPar,
LeftBrace,
RightBrace,
LeftBracket,
RightBracket,
LeftAngle,
RightAngle,
Dot,
Dots,
Colon,
Comma,
Arrow,
Directive,
Pure,
Newline,
}
Variants§
Identifier
Integer
Float
Bool
Char
String
Func
Let
Return
HardwareMap
Plus
Minus
Times
Assign
LeftPar
RightPar
LeftBrace
RightBrace
LeftBracket
RightBracket
LeftAngle
RightAngle
Dot
Dots
Colon
Comma
Arrow
Directive
Pure
Newline
Trait Implementations§
impl Copy for TokenType
impl Eq for TokenType
impl StructuralPartialEq for TokenType
Auto Trait Implementations§
impl Freeze for TokenType
impl RefUnwindSafe for TokenType
impl Send for TokenType
impl Sync for TokenType
impl Unpin for TokenType
impl UnwindSafe for TokenType
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