#[repr(u16)]pub enum CTokenType {
Show 100 variants
LeftParen = 0,
RightParen = 1,
LeftBracket = 2,
RightBracket = 3,
LeftBrace = 4,
RightBrace = 5,
Comma = 6,
Semicolon = 7,
Colon = 8,
Dot = 9,
Question = 10,
Plus = 11,
Minus = 12,
Star = 13,
Slash = 14,
Percent = 15,
Assign = 16,
PlusAssign = 17,
MinusAssign = 18,
StarAssign = 19,
SlashAssign = 20,
PercentAssign = 21,
Equal = 22,
NotEqual = 23,
Less = 24,
Greater = 25,
LessEqual = 26,
GreaterEqual = 27,
LogicalAnd = 28,
LogicalOr = 29,
LogicalNot = 30,
BitAnd = 31,
BitOr = 32,
BitXor = 33,
BitNot = 34,
LeftShift = 35,
RightShift = 36,
AndAssign = 37,
OrAssign = 38,
XorAssign = 39,
LeftShiftAssign = 40,
RightShiftAssign = 41,
Increment = 42,
Decrement = 43,
Arrow = 44,
Auto = 45,
Register = 46,
Static = 47,
Extern = 48,
Typedef = 49,
Void = 50,
Char = 51,
Short = 52,
Int = 53,
Long = 54,
Float = 55,
Double = 56,
Signed = 57,
Unsigned = 58,
Struct = 59,
Union = 60,
Enum = 61,
Const = 62,
Volatile = 63,
Restrict = 64,
If = 65,
Else = 66,
Switch = 67,
Case = 68,
Default = 69,
For = 70,
While = 71,
Do = 72,
Break = 73,
Continue = 74,
Goto = 75,
Return = 76,
Sizeof = 77,
Inline = 78,
Bool = 79,
Complex = 80,
Imaginary = 81,
Alignas = 82,
Alignof = 83,
Atomic = 84,
StaticAssert = 85,
ThreadLocal = 86,
Generic = 87,
Noreturn = 88,
IntegerLiteral = 89,
FloatLiteral = 90,
CharLiteral = 91,
StringLiteral = 92,
Identifier = 93,
Whitespace = 94,
Comment = 95,
PreprocessorDirective = 96,
Text = 97,
Error = 98,
Eof = 99,
}Variants§
LeftParen = 0
Left parenthesis: (
RightParen = 1
Right parenthesis: )
LeftBracket = 2
Left bracket: [
RightBracket = 3
Right bracket: ]
LeftBrace = 4
Left brace: {
RightBrace = 5
Right brace: }
Comma = 6
Comma: ,
Semicolon = 7
Semicolon: ;
Colon = 8
Colon: :
Dot = 9
Dot: .
Question = 10
Question mark: ?
Plus = 11
Addition operator: +
Minus = 12
Subtraction operator: -
Star = 13
Multiplication operator: *
Slash = 14
Division operator: /
Percent = 15
Modulo operator: %
Assign = 16
Assignment operator: =
PlusAssign = 17
Addition assignment: +=
MinusAssign = 18
Subtraction assignment: -=
StarAssign = 19
Multiplication assignment: *=
SlashAssign = 20
Division assignment: /=
PercentAssign = 21
Modulo assignment: %=
Equal = 22
Equality comparison: ==
NotEqual = 23
Inequality comparison: !=
Less = 24
Less than: <
Greater = 25
Greater than: >
LessEqual = 26
Less than or equal: <=
GreaterEqual = 27
Greater than or equal: >=
LogicalAnd = 28
Logical AND: &&
LogicalOr = 29
Logical OR: ||
LogicalNot = 30
Logical NOT: !
BitAnd = 31
Bitwise AND: &
BitOr = 32
Bitwise OR: |
BitXor = 33
Bitwise XOR: ^
BitNot = 34
Bitwise NOT: ~
LeftShift = 35
Left shift: <<
RightShift = 36
Right shift: >>
AndAssign = 37
Bitwise AND assignment: &=
OrAssign = 38
Bitwise OR assignment: |=
XorAssign = 39
Bitwise XOR assignment: ^=
LeftShiftAssign = 40
Left shift assignment: <<=
RightShiftAssign = 41
Right shift assignment: >>=
Increment = 42
Increment: ++
Decrement = 43
Decrement: --
Arrow = 44
Arrow operator: ->
Auto = 45
auto keyword
Register = 46
register keyword
Static = 47
static keyword
Extern = 48
extern keyword
Typedef = 49
typedef keyword
Void = 50
void keyword
Char = 51
char keyword
Short = 52
short keyword
Int = 53
int keyword
Long = 54
long keyword
Float = 55
float keyword
Double = 56
double keyword
Signed = 57
signed keyword
Unsigned = 58
unsigned keyword
Struct = 59
struct keyword
Union = 60
union keyword
Enum = 61
enum keyword
Const = 62
const keyword
Volatile = 63
volatile keyword
Restrict = 64
restrict keyword
If = 65
if keyword
Else = 66
else keyword
Switch = 67
switch keyword
Case = 68
case keyword
Default = 69
default keyword
For = 70
for keyword
While = 71
while keyword
Do = 72
do keyword
Break = 73
break keyword
Continue = 74
continue keyword
Goto = 75
goto keyword
Return = 76
return keyword
Sizeof = 77
sizeof keyword
Inline = 78
inline keyword
Bool = 79
_Bool keyword
Complex = 80
_Complex keyword
Imaginary = 81
_Imaginary keyword
Alignas = 82
_Alignas keyword
Alignof = 83
_Alignof keyword
Atomic = 84
_Atomic keyword
StaticAssert = 85
_Static_assert keyword
ThreadLocal = 86
_Thread_local keyword
Generic = 87
_Generic keyword
Noreturn = 88
_Noreturn keyword
IntegerLiteral = 89
Integer literal
FloatLiteral = 90
Floating-point literal
CharLiteral = 91
Character literal
StringLiteral = 92
String literal
Identifier = 93
Identifier
Whitespace = 94
Whitespace
Comment = 95
Comments
PreprocessorDirective = 96
Preprocessor directives
Text = 97
Text
Error = 98
Error token
Eof = 99
End of file marker
Implementations§
Source§impl CTokenType
impl CTokenType
pub fn is_keyword(&self) -> bool
Trait Implementations§
Source§impl Clone for CTokenType
impl Clone for CTokenType
Source§fn clone(&self) -> CTokenType
fn clone(&self) -> CTokenType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more