Enum tonic_parser::TokenKind [−][src]
pub enum TokenKind {
Show 37 variants
Fn,
Let,
If,
Else,
While,
Return,
Break,
Continue,
True,
False,
Identifier(String),
String(String),
Number(f64),
Colon,
DoubleColon,
SemiColon,
Comma,
LeftParen,
RightParen,
LeftBrace,
RightBrace,
LeftBracket,
RightBracket,
Plus,
Minus,
Asterisk,
Slash,
Percent,
DoubleAsterisk,
Equals,
EqualsEquals,
NotEquals,
GreaterThan,
GreaterThanEquals,
LessThan,
LessThanEquals,
Eof,
}
Expand description
Represents the “kind” of a token.
They are separated into groups in the source code, where each group signifies a sub-type of token.
Variants
Identifier(String)
Tuple Fields of Identifier
0: String
String(String)
Tuple Fields of String
0: String
Number(f64)
Tuple Fields of Number
0: f64
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TokenKind
impl UnwindSafe for TokenKind
Blanket Implementations
Mutably borrows from an owned value. Read more