pub enum Rust {
Show 356 variants
End = 0,
Identifier = 1,
SEMI = 2,
MacroRulesBANG = 3,
LPAREN = 4,
RPAREN = 5,
LBRACK = 6,
RBRACK = 7,
LBRACE = 8,
RBRACE = 9,
EQGT = 10,
COLON = 11,
DOLLAR = 12,
TokenRepetitionPatternToken1 = 13,
PLUS = 14,
STAR = 15,
QMARK = 16,
Block2 = 17,
Expr = 18,
Expr2021 = 19,
Ident = 20,
Item = 21,
Lifetime2 = 22,
Literal = 23,
Meta = 24,
Pat = 25,
PatParam = 26,
Path = 27,
Stmt = 28,
Tt = 29,
Ty = 30,
Vis = 31,
PrimitiveType = 32,
PrimitiveType2 = 33,
PrimitiveType3 = 34,
PrimitiveType4 = 35,
PrimitiveType5 = 36,
PrimitiveType6 = 37,
PrimitiveType7 = 38,
PrimitiveType8 = 39,
PrimitiveType9 = 40,
PrimitiveType10 = 41,
PrimitiveType11 = 42,
PrimitiveType12 = 43,
PrimitiveType13 = 44,
PrimitiveType14 = 45,
PrimitiveType15 = 46,
PrimitiveType16 = 47,
PrimitiveType17 = 48,
DASH = 49,
SLASH = 50,
PERCENT = 51,
CARET = 52,
BANG = 53,
AMP = 54,
PIPE = 55,
AMPAMP = 56,
PIPEPIPE = 57,
LTLT = 58,
GTGT = 59,
PLUSEQ = 60,
DASHEQ = 61,
STAREQ = 62,
SLASHEQ = 63,
PERCENTEQ = 64,
CARETEQ = 65,
AMPEQ = 66,
PIPEEQ = 67,
LTLTEQ = 68,
GTGTEQ = 69,
EQ = 70,
EQEQ = 71,
BANGEQ = 72,
GT = 73,
LT = 74,
GTEQ = 75,
LTEQ = 76,
AT = 77,
UNDERSCORE = 78,
DOT = 79,
DOTDOT = 80,
DOTDOTDOT = 81,
DOTDOTEQ = 82,
COMMA = 83,
COLONCOLON = 84,
DASHGT = 85,
HASH = 86,
SQUOTE = 87,
As = 88,
Async = 89,
Await = 90,
Break = 91,
Const = 92,
Continue = 93,
Default = 94,
Enum = 95,
Fn = 96,
For = 97,
Gen = 98,
If = 99,
Impl = 100,
Let = 101,
Loop = 102,
Match = 103,
Mod = 104,
Pub = 105,
Return = 106,
Static = 107,
Struct = 108,
Trait = 109,
Type = 110,
Union = 111,
Unsafe = 112,
Use = 113,
Where = 114,
While = 115,
Extern = 116,
Ref = 117,
Else = 118,
In = 119,
LT2 = 120,
Dyn = 121,
MutableSpecifier = 122,
Raw = 123,
Yield = 124,
Move = 125,
Try = 126,
IntegerLiteral = 127,
DQUOTE = 128,
CharLiteral = 129,
EscapeSequence = 130,
True = 131,
False = 132,
SLASHSLASH = 133,
LineCommentToken1 = 134,
LineCommentToken2 = 135,
LineCommentToken3 = 136,
BANG2 = 137,
SLASH2 = 138,
SLASHSTAR = 139,
STARSLASH = 140,
Shebang = 141,
Zelf = 142,
Super = 143,
Crate = 144,
Metavariable = 145,
StringContent = 146,
DQUOTE2 = 147,
RawStringLiteralStart = 148,
StringContent2 = 149,
RawStringLiteralEnd = 150,
FloatLiteral = 151,
OuterDocCommentMarker = 152,
InnerDocCommentMarker = 153,
BlockCommentContent = 154,
DocComment = 155,
ErrorSentinel = 156,
SourceFile = 157,
Statement = 158,
EmptyStatement = 159,
ExpressionStatement = 160,
MacroDefinition = 161,
MacroRule = 162,
TokenPattern = 163,
TokenTreePattern = 164,
TokenBindingPattern = 165,
TokenRepetitionPattern = 166,
FragmentSpecifier = 167,
TokenTree = 168,
TokenRepetition = 169,
AttributeItem = 170,
InnerAttributeItem = 171,
Attribute = 172,
ModItem = 173,
ForeignModItem = 174,
DeclarationList = 175,
StructItem = 176,
UnionItem = 177,
EnumItem = 178,
EnumVariantList = 179,
EnumVariant = 180,
FieldDeclarationList = 181,
FieldDeclaration = 182,
OrderedFieldDeclarationList = 183,
ExternCrateDeclaration = 184,
ConstItem = 185,
StaticItem = 186,
TypeItem = 187,
FunctionItem = 188,
FunctionSignatureItem = 189,
FunctionModifiers = 190,
WhereClause = 191,
WherePredicate = 192,
ImplItem = 193,
TraitItem = 194,
AssociatedType = 195,
TraitBounds = 196,
HigherRankedTraitBound = 197,
RemovedTraitBound = 198,
TypeParameters = 199,
ConstParameter = 200,
TypeParameter = 201,
LifetimeParameter = 202,
LetDeclaration = 203,
UseDeclaration = 204,
UseClause = 205,
ScopedUseList = 206,
UseList = 207,
UseAsClause = 208,
UseWildcard = 209,
Parameters = 210,
SelfParameter = 211,
VariadicParameter = 212,
Parameter = 213,
ExternModifier = 214,
VisibilityModifier = 215,
Type2 = 216,
BracketedType = 217,
QualifiedType = 218,
Lifetime = 219,
ArrayType = 220,
ForLifetimes = 221,
FunctionType = 222,
TupleType = 223,
UnitType = 224,
GenericFunction = 225,
GenericType = 226,
GenericTypeWithTurbofish = 227,
BoundedType = 228,
UseBounds = 229,
TypeArguments = 230,
TypeBinding = 231,
ReferenceType = 232,
PointerType = 233,
NeverType = 234,
AbstractType = 235,
DynamicType = 236,
ExpressionExceptRange = 237,
Expression = 238,
MacroInvocation = 239,
TokenTree2 = 240,
DelimTokens = 241,
NonDelimToken = 242,
ScopedIdentifier = 243,
ScopedTypeIdentifier = 244,
ScopedTypeIdentifier2 = 245,
RangeExpression = 246,
UnaryExpression = 247,
TryExpression = 248,
ReferenceExpression = 249,
BinaryExpression = 250,
AssignmentExpression = 251,
CompoundAssignmentExpr = 252,
TypeCastExpression = 253,
ReturnExpression = 254,
YieldExpression = 255,
CallExpression = 256,
Arguments = 257,
ArrayExpression = 258,
ParenthesizedExpression = 259,
TupleExpression = 260,
UnitExpression = 261,
StructExpression = 262,
FieldInitializerList = 263,
ShorthandFieldInitializer = 264,
FieldInitializer = 265,
BaseFieldInitializer = 266,
IfExpression = 267,
LetCondition = 268,
LetChain2 = 269,
Condition = 270,
ElseClause = 271,
MatchExpression = 272,
MatchBlock = 273,
MatchArm = 274,
MatchArm2 = 275,
MatchPattern = 276,
WhileExpression = 277,
LoopExpression = 278,
ForExpression = 279,
ConstBlock = 280,
ClosureExpression = 281,
ClosureParameters = 282,
Label = 283,
BreakExpression = 284,
ContinueExpression = 285,
IndexExpression = 286,
AwaitExpression = 287,
FieldExpression = 288,
UnsafeBlock = 289,
AsyncBlock = 290,
GenBlock = 291,
TryBlock = 292,
Block = 293,
Pattern = 294,
GenericPattern = 295,
TuplePattern = 296,
SlicePattern = 297,
TupleStructPattern = 298,
StructPattern = 299,
FieldPattern = 300,
RemainingFieldPattern = 301,
MutPattern = 302,
RangePattern = 303,
RefPattern = 304,
CapturedPattern = 305,
ReferencePattern = 306,
OrPattern = 307,
Literal2 = 308,
LiteralPattern = 309,
NegativeLiteral = 310,
StringLiteral = 311,
RawStringLiteral = 312,
BooleanLiteral = 313,
LineComment = 314,
LineDocCommentMarker = 315,
InnerDocCommentMarker2 = 316,
OuterDocCommentMarker2 = 317,
BlockComment = 318,
BlockDocCommentMarker = 319,
SourceFileRepeat1 = 320,
MacroDefinitionRepeat1 = 321,
TokenTreePatternRepeat1 = 322,
TokenTreeRepeat1 = 323,
NonSpecialTokenRepeat1 = 324,
DeclarationListRepeat1 = 325,
EnumVariantListRepeat1 = 326,
EnumVariantListRepeat2 = 327,
FieldDeclarationListRepeat1 = 328,
OrderedFieldDeclarationListRepeat1 = 329,
FunctionModifiersRepeat1 = 330,
WhereClauseRepeat1 = 331,
TraitBoundsRepeat1 = 332,
TypeParametersRepeat1 = 333,
UseListRepeat1 = 334,
ParametersRepeat1 = 335,
ForLifetimesRepeat1 = 336,
TupleTypeRepeat1 = 337,
UseBoundsRepeat1 = 338,
TypeArgumentsRepeat1 = 339,
DelimTokenTreeRepeat1 = 340,
ArgumentsRepeat1 = 341,
TupleExpressionRepeat1 = 342,
FieldInitializerListRepeat1 = 343,
MatchBlockRepeat1 = 344,
MatchArmRepeat1 = 345,
ClosureParametersRepeat1 = 346,
TuplePatternRepeat1 = 347,
SlicePatternRepeat1 = 348,
StructPatternRepeat1 = 349,
StringLiteralRepeat1 = 350,
FieldIdentifier = 351,
LetChain = 352,
ShorthandFieldIdentifier = 353,
TypeIdentifier = 354,
Error = 355,
}Variants§
End = 0
Identifier = 1
SEMI = 2
MacroRulesBANG = 3
LPAREN = 4
RPAREN = 5
LBRACK = 6
RBRACK = 7
LBRACE = 8
RBRACE = 9
EQGT = 10
COLON = 11
DOLLAR = 12
TokenRepetitionPatternToken1 = 13
PLUS = 14
STAR = 15
QMARK = 16
Block2 = 17
Expr = 18
Expr2021 = 19
Ident = 20
Item = 21
Lifetime2 = 22
Literal = 23
Meta = 24
Pat = 25
PatParam = 26
Path = 27
Stmt = 28
Tt = 29
Ty = 30
Vis = 31
PrimitiveType = 32
PrimitiveType2 = 33
PrimitiveType3 = 34
PrimitiveType4 = 35
PrimitiveType5 = 36
PrimitiveType6 = 37
PrimitiveType7 = 38
PrimitiveType8 = 39
PrimitiveType9 = 40
PrimitiveType10 = 41
PrimitiveType11 = 42
PrimitiveType12 = 43
PrimitiveType13 = 44
PrimitiveType14 = 45
PrimitiveType15 = 46
PrimitiveType16 = 47
PrimitiveType17 = 48
DASH = 49
SLASH = 50
PERCENT = 51
CARET = 52
BANG = 53
AMP = 54
PIPE = 55
AMPAMP = 56
PIPEPIPE = 57
LTLT = 58
GTGT = 59
PLUSEQ = 60
DASHEQ = 61
STAREQ = 62
SLASHEQ = 63
PERCENTEQ = 64
CARETEQ = 65
AMPEQ = 66
PIPEEQ = 67
LTLTEQ = 68
GTGTEQ = 69
EQ = 70
EQEQ = 71
BANGEQ = 72
GT = 73
LT = 74
GTEQ = 75
LTEQ = 76
AT = 77
UNDERSCORE = 78
DOT = 79
DOTDOT = 80
DOTDOTDOT = 81
DOTDOTEQ = 82
COMMA = 83
COLONCOLON = 84
DASHGT = 85
HASH = 86
SQUOTE = 87
As = 88
Async = 89
Await = 90
Break = 91
Const = 92
Continue = 93
Default = 94
Enum = 95
Fn = 96
For = 97
Gen = 98
If = 99
Impl = 100
Let = 101
Loop = 102
Match = 103
Mod = 104
Pub = 105
Return = 106
Static = 107
Struct = 108
Trait = 109
Type = 110
Union = 111
Unsafe = 112
Use = 113
Where = 114
While = 115
Extern = 116
Ref = 117
Else = 118
In = 119
LT2 = 120
Dyn = 121
MutableSpecifier = 122
Raw = 123
Yield = 124
Move = 125
Try = 126
IntegerLiteral = 127
DQUOTE = 128
CharLiteral = 129
EscapeSequence = 130
True = 131
False = 132
SLASHSLASH = 133
LineCommentToken1 = 134
LineCommentToken2 = 135
LineCommentToken3 = 136
BANG2 = 137
SLASH2 = 138
SLASHSTAR = 139
STARSLASH = 140
Shebang = 141
Zelf = 142
Super = 143
Crate = 144
Metavariable = 145
StringContent = 146
DQUOTE2 = 147
RawStringLiteralStart = 148
StringContent2 = 149
RawStringLiteralEnd = 150
FloatLiteral = 151
OuterDocCommentMarker = 152
InnerDocCommentMarker = 153
BlockCommentContent = 154
DocComment = 155
ErrorSentinel = 156
SourceFile = 157
Statement = 158
EmptyStatement = 159
ExpressionStatement = 160
MacroDefinition = 161
MacroRule = 162
TokenPattern = 163
TokenTreePattern = 164
TokenBindingPattern = 165
TokenRepetitionPattern = 166
FragmentSpecifier = 167
TokenTree = 168
TokenRepetition = 169
AttributeItem = 170
InnerAttributeItem = 171
Attribute = 172
ModItem = 173
ForeignModItem = 174
DeclarationList = 175
StructItem = 176
UnionItem = 177
EnumItem = 178
EnumVariantList = 179
EnumVariant = 180
FieldDeclarationList = 181
FieldDeclaration = 182
OrderedFieldDeclarationList = 183
ExternCrateDeclaration = 184
ConstItem = 185
StaticItem = 186
TypeItem = 187
FunctionItem = 188
FunctionSignatureItem = 189
FunctionModifiers = 190
WhereClause = 191
WherePredicate = 192
ImplItem = 193
TraitItem = 194
AssociatedType = 195
TraitBounds = 196
HigherRankedTraitBound = 197
RemovedTraitBound = 198
TypeParameters = 199
ConstParameter = 200
TypeParameter = 201
LifetimeParameter = 202
LetDeclaration = 203
UseDeclaration = 204
UseClause = 205
ScopedUseList = 206
UseList = 207
UseAsClause = 208
UseWildcard = 209
Parameters = 210
SelfParameter = 211
VariadicParameter = 212
Parameter = 213
ExternModifier = 214
VisibilityModifier = 215
Type2 = 216
BracketedType = 217
QualifiedType = 218
Lifetime = 219
ArrayType = 220
ForLifetimes = 221
FunctionType = 222
TupleType = 223
UnitType = 224
GenericFunction = 225
GenericType = 226
GenericTypeWithTurbofish = 227
BoundedType = 228
UseBounds = 229
TypeArguments = 230
TypeBinding = 231
ReferenceType = 232
PointerType = 233
NeverType = 234
AbstractType = 235
DynamicType = 236
ExpressionExceptRange = 237
Expression = 238
MacroInvocation = 239
TokenTree2 = 240
DelimTokens = 241
NonDelimToken = 242
ScopedIdentifier = 243
ScopedTypeIdentifier = 244
ScopedTypeIdentifier2 = 245
RangeExpression = 246
UnaryExpression = 247
TryExpression = 248
ReferenceExpression = 249
BinaryExpression = 250
AssignmentExpression = 251
CompoundAssignmentExpr = 252
TypeCastExpression = 253
ReturnExpression = 254
YieldExpression = 255
CallExpression = 256
Arguments = 257
ArrayExpression = 258
ParenthesizedExpression = 259
TupleExpression = 260
UnitExpression = 261
StructExpression = 262
FieldInitializerList = 263
ShorthandFieldInitializer = 264
FieldInitializer = 265
BaseFieldInitializer = 266
IfExpression = 267
LetCondition = 268
LetChain2 = 269
Condition = 270
ElseClause = 271
MatchExpression = 272
MatchBlock = 273
MatchArm = 274
MatchArm2 = 275
MatchPattern = 276
WhileExpression = 277
LoopExpression = 278
ForExpression = 279
ConstBlock = 280
ClosureExpression = 281
ClosureParameters = 282
Label = 283
BreakExpression = 284
ContinueExpression = 285
IndexExpression = 286
AwaitExpression = 287
FieldExpression = 288
UnsafeBlock = 289
AsyncBlock = 290
GenBlock = 291
TryBlock = 292
Block = 293
Pattern = 294
GenericPattern = 295
TuplePattern = 296
SlicePattern = 297
TupleStructPattern = 298
StructPattern = 299
FieldPattern = 300
RemainingFieldPattern = 301
MutPattern = 302
RangePattern = 303
RefPattern = 304
CapturedPattern = 305
ReferencePattern = 306
OrPattern = 307
Literal2 = 308
LiteralPattern = 309
NegativeLiteral = 310
StringLiteral = 311
RawStringLiteral = 312
BooleanLiteral = 313
LineComment = 314
LineDocCommentMarker = 315
InnerDocCommentMarker2 = 316
OuterDocCommentMarker2 = 317
BlockComment = 318
BlockDocCommentMarker = 319
SourceFileRepeat1 = 320
MacroDefinitionRepeat1 = 321
TokenTreePatternRepeat1 = 322
TokenTreeRepeat1 = 323
NonSpecialTokenRepeat1 = 324
DeclarationListRepeat1 = 325
EnumVariantListRepeat1 = 326
EnumVariantListRepeat2 = 327
FieldDeclarationListRepeat1 = 328
OrderedFieldDeclarationListRepeat1 = 329
FunctionModifiersRepeat1 = 330
WhereClauseRepeat1 = 331
TraitBoundsRepeat1 = 332
TypeParametersRepeat1 = 333
UseListRepeat1 = 334
ParametersRepeat1 = 335
ForLifetimesRepeat1 = 336
TupleTypeRepeat1 = 337
UseBoundsRepeat1 = 338
TypeArgumentsRepeat1 = 339
DelimTokenTreeRepeat1 = 340
ArgumentsRepeat1 = 341
TupleExpressionRepeat1 = 342
FieldInitializerListRepeat1 = 343
MatchBlockRepeat1 = 344
MatchArmRepeat1 = 345
ClosureParametersRepeat1 = 346
TuplePatternRepeat1 = 347
SlicePatternRepeat1 = 348
StructPatternRepeat1 = 349
StringLiteralRepeat1 = 350
FieldIdentifier = 351
LetChain = 352
ShorthandFieldIdentifier = 353
TypeIdentifier = 354
Error = 355
Trait Implementations§
impl Eq for Rust
Source§impl FromPrimitive for Rust
impl FromPrimitive for Rust
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreimpl StructuralPartialEq for Rust
Auto Trait Implementations§
impl Freeze for Rust
impl RefUnwindSafe for Rust
impl Send for Rust
impl Sync for Rust
impl Unpin for Rust
impl UnsafeUnpin for Rust
impl UnwindSafe for Rust
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.