pub enum Ruby {
Show 352 variants
End = 0,
Identifier = 1,
ProgramToken1 = 2,
Uninterpreted = 3,
BEGIN = 4,
LBRACE = 5,
RBRACE = 6,
END = 7,
Def = 8,
LPAREN = 9,
RPAREN = 10,
DOT = 11,
COLONCOLON = 12,
End2 = 13,
Rescue2 = 14,
EQ = 15,
COMMA = 16,
PIPE = 17,
SEMI = 18,
DOTDOTDOT = 19,
STAR = 20,
STARSTAR = 21,
Nil2 = 22,
AMP = 23,
COLON = 24,
Class2 = 25,
LT = 26,
Module2 = 27,
Return3 = 28,
Yield3 = 29,
Break3 = 30,
Next3 = 31,
Redo2 = 32,
Retry2 = 33,
If2 = 34,
Unless2 = 35,
While2 = 36,
Until2 = 37,
For2 = 38,
In2 = 39,
Do2 = 40,
Case2 = 41,
When2 = 42,
EQGT = 43,
LBRACK = 44,
RBRACK = 45,
LBRACK2 = 46,
LPAREN2 = 47,
DOTDOT = 48,
Line = 49,
File = 50,
Encoding = 51,
CARET = 52,
Elsif2 = 53,
Else2 = 54,
Then2 = 55,
Begin2 = 56,
Ensure2 = 57,
COLONCOLON2 = 58,
AMPDOT = 59,
PLUSEQ = 60,
DASHEQ = 61,
STAREQ = 62,
STARSTAREQ = 63,
SLASHEQ = 64,
PIPEPIPEEQ = 65,
PIPEEQ = 66,
AMPAMPEQ = 67,
AMPEQ = 68,
PERCENTEQ = 69,
GTGTEQ = 70,
LTLTEQ = 71,
CARETEQ = 72,
QMARK = 73,
COLON2 = 74,
And = 75,
Or = 76,
PIPEPIPE = 77,
AMPAMP = 78,
LTLT = 79,
GTGT = 80,
LTEQ = 81,
GT = 82,
GTEQ = 83,
PLUS = 84,
SLASH = 85,
PERCENT = 86,
EQEQ = 87,
BANGEQ = 88,
EQEQEQ = 89,
LTEQGT = 90,
EQTILDE = 91,
BANGTILDE = 92,
DefinedQMARK = 93,
Not = 94,
BANG = 95,
TILDE = 96,
DASH = 97,
PLUSAT = 98,
DASHAT = 99,
TILDEAT = 100,
LBRACKRBRACK = 101,
LBRACKRBRACKEQ = 102,
BQUOTE = 103,
EQ2 = 104,
Undef2 = 105,
Alias2 = 106,
Comment = 107,
Integer = 108,
Float = 109,
I = 110,
Ri = 111,
R = 112,
Super = 113,
Zelf = 114,
True = 115,
False = 116,
Constant = 117,
ConstantSuffixToken1 = 118,
IdentifierSuffixToken1 = 119,
InstanceVariable = 120,
ClassVariable = 121,
GlobalVariable = 122,
Character = 123,
HASHLBRACE = 124,
StringArrayToken1 = 125,
EscapeSequence = 126,
DASHGT = 127,
LineBreak = 128,
NoLineBreak = 129,
SimpleSymbol = 130,
DQUOTE = 131,
COLONDQUOTE = 132,
BQUOTE2 = 133,
SLASH2 = 134,
PERCENTwLPAREN = 135,
PERCENTiLPAREN = 136,
HeredocBodyStart = 137,
StringContent = 138,
HeredocContent = 139,
RPAREN2 = 140,
HeredocEnd = 141,
HeredocBeginning = 142,
AMP2 = 143,
STAR2 = 144,
DASH2 = 145,
DASH3 = 146,
DASH4 = 147,
STAR3 = 148,
LTLT2 = 149,
HashKeySymbol = 150,
IdentifierSuffix = 151,
ConstantSuffix = 152,
STARSTAR2 = 153,
STARSTAR3 = 154,
LBRACK3 = 155,
ShortInterpolation = 156,
Program = 157,
BlockBody = 158,
Statements = 159,
BeginBlock = 160,
EndBlock = 161,
Statement = 162,
Method = 163,
SingletonMethod = 164,
MethodRest = 165,
RescueModifier = 166,
RescueModifier2 = 167,
BodyExpr = 168,
MethodParameters = 169,
MethodParameters2 = 170,
BlockParameters = 171,
FormalParameter = 172,
SimpleFormalParameter = 173,
ForwardParameter = 174,
SplatParameter = 175,
HashSplatParameter = 176,
HashSplatNil = 177,
BlockParameter = 178,
KeywordParameter = 179,
OptionalParameter = 180,
Class = 181,
Superclass = 182,
SingletonClass = 183,
Module = 184,
Return = 185,
Yield = 186,
Break = 187,
Next = 188,
Return2 = 189,
Yield2 = 190,
Break2 = 191,
Next2 = 192,
Redo = 193,
Retry = 194,
IfModifier = 195,
UnlessModifier = 196,
WhileModifier = 197,
UntilModifier = 198,
RescueModifier3 = 199,
While = 200,
Until = 201,
For = 202,
In = 203,
Do = 204,
Case = 205,
CaseMatch = 206,
When = 207,
InClause = 208,
Pattern = 209,
Guard = 210,
IfGuard = 211,
UnlessGuard = 212,
PatternTopExprBody = 213,
ArrayPatternN = 214,
PatternExpr = 215,
AsPattern = 216,
PatternExprAlt = 217,
AlternativePattern = 218,
ArrayPatternBody = 219,
ArrayPattern = 220,
FindPatternBody = 221,
FindPattern = 222,
HashPatternBody = 223,
KeywordPattern = 224,
HashPatternAnyRest = 225,
HashPattern = 226,
PatternExprBasic = 227,
ParenthesizedPattern = 228,
PatternValue = 229,
Range = 230,
PatternPrimitive = 231,
PatternLambda = 232,
PatternLiteral = 233,
KeywordVariable = 234,
VariableReferencePattern = 235,
ExpressionReferencePattern = 236,
PatternConstant = 237,
ScopeResolution = 238,
If = 239,
Unless = 240,
Elsif = 241,
Else = 242,
Then = 243,
Begin = 244,
Ensure = 245,
Rescue = 246,
Exceptions = 247,
ExceptionVariable = 248,
BodyStatement = 249,
BodyStatement2 = 250,
Expression = 251,
MatchPattern = 252,
TestPattern = 253,
Arg = 254,
Unary = 255,
Binary = 256,
Primary = 257,
ParenthesizedStatements = 258,
ElementReference = 259,
ScopeResolution2 = 260,
Call5 = 261,
Call = 262,
Call2 = 263,
ChainedCommandCall = 264,
Call3 = 265,
ArgumentList = 266,
ArgumentList2 = 267,
ArgumentListWithTrailingComma = 268,
Argument = 269,
ForwardArgument = 270,
SplatArgument = 271,
HashSplatArgument = 272,
BlockArgument = 273,
DoBlock = 274,
Block = 275,
Assignment = 276,
Assignment2 = 277,
OperatorAssignment = 278,
OperatorAssignment2 = 279,
Conditional = 280,
Range2 = 281,
Binary2 = 282,
Binary3 = 283,
Unary2 = 284,
Unary3 = 285,
Unary4 = 286,
Unary5 = 287,
Literal = 288,
Numeric = 289,
SimpleNumeric = 290,
RightAssignmentList = 291,
LeftAssignmentList = 292,
Mlhs = 293,
DestructuredLeftAssignment = 294,
RestAssignment = 295,
FunctionIdentifier = 296,
Call4 = 297,
Lhs = 298,
Variable = 299,
Operator = 300,
MethodName = 301,
NonlocalVariable = 302,
Setter = 303,
Undef = 304,
Alias = 305,
IntOrFloat = 306,
Complex = 307,
Rational = 308,
Nil = 309,
HashKeySymbol2 = 310,
HashKeySymbol3 = 311,
ChainedString = 312,
Interpolation = 313,
String = 314,
Subshell = 315,
StringArray = 316,
SymbolArray = 317,
DelimitedSymbol = 318,
Regex = 319,
HeredocBody = 320,
LiteralContents = 321,
Array = 322,
Hash = 323,
Pair = 324,
Lambda = 325,
EmptyStatement = 326,
Terminator = 327,
StatementsRepeat1 = 328,
ParametersRepeat1 = 329,
BlockParametersRepeat1 = 330,
CaseRepeat1 = 331,
CaseMatchRepeat1 = 332,
WhenRepeat1 = 333,
ArrayPatternNRepeat1 = 334,
AlternativePatternRepeat1 = 335,
HashPatternBodyRepeat1 = 336,
ExceptionsRepeat1 = 337,
BodyStatementRepeat1 = 338,
CommandArgumentListRepeat1 = 339,
MlhsRepeat1 = 340,
UndefRepeat1 = 341,
ChainedStringRepeat1 = 342,
StringArrayRepeat1 = 343,
SymbolArrayRepeat1 = 344,
HeredocBodyRepeat1 = 345,
HashRepeat1 = 346,
BareString = 347,
BareSymbol = 348,
DestructuredParameter = 349,
LambdaParameters = 350,
Error = 351,
}Variants§
End = 0
Identifier = 1
ProgramToken1 = 2
Uninterpreted = 3
BEGIN = 4
LBRACE = 5
RBRACE = 6
END = 7
Def = 8
LPAREN = 9
RPAREN = 10
DOT = 11
COLONCOLON = 12
End2 = 13
Rescue2 = 14
EQ = 15
COMMA = 16
PIPE = 17
SEMI = 18
DOTDOTDOT = 19
STAR = 20
STARSTAR = 21
Nil2 = 22
AMP = 23
COLON = 24
Class2 = 25
LT = 26
Module2 = 27
Return3 = 28
Yield3 = 29
Break3 = 30
Next3 = 31
Redo2 = 32
Retry2 = 33
If2 = 34
Unless2 = 35
While2 = 36
Until2 = 37
For2 = 38
In2 = 39
Do2 = 40
Case2 = 41
When2 = 42
EQGT = 43
LBRACK = 44
RBRACK = 45
LBRACK2 = 46
LPAREN2 = 47
DOTDOT = 48
Line = 49
File = 50
Encoding = 51
CARET = 52
Elsif2 = 53
Else2 = 54
Then2 = 55
Begin2 = 56
Ensure2 = 57
COLONCOLON2 = 58
AMPDOT = 59
PLUSEQ = 60
DASHEQ = 61
STAREQ = 62
STARSTAREQ = 63
SLASHEQ = 64
PIPEPIPEEQ = 65
PIPEEQ = 66
AMPAMPEQ = 67
AMPEQ = 68
PERCENTEQ = 69
GTGTEQ = 70
LTLTEQ = 71
CARETEQ = 72
QMARK = 73
COLON2 = 74
And = 75
Or = 76
PIPEPIPE = 77
AMPAMP = 78
LTLT = 79
GTGT = 80
LTEQ = 81
GT = 82
GTEQ = 83
PLUS = 84
SLASH = 85
PERCENT = 86
EQEQ = 87
BANGEQ = 88
EQEQEQ = 89
LTEQGT = 90
EQTILDE = 91
BANGTILDE = 92
DefinedQMARK = 93
Not = 94
BANG = 95
TILDE = 96
DASH = 97
PLUSAT = 98
DASHAT = 99
TILDEAT = 100
LBRACKRBRACK = 101
LBRACKRBRACKEQ = 102
BQUOTE = 103
EQ2 = 104
Undef2 = 105
Alias2 = 106
Comment = 107
Integer = 108
Float = 109
I = 110
Ri = 111
R = 112
Super = 113
Zelf = 114
True = 115
False = 116
Constant = 117
ConstantSuffixToken1 = 118
IdentifierSuffixToken1 = 119
InstanceVariable = 120
ClassVariable = 121
GlobalVariable = 122
Character = 123
HASHLBRACE = 124
StringArrayToken1 = 125
EscapeSequence = 126
DASHGT = 127
LineBreak = 128
NoLineBreak = 129
SimpleSymbol = 130
DQUOTE = 131
COLONDQUOTE = 132
BQUOTE2 = 133
SLASH2 = 134
PERCENTwLPAREN = 135
PERCENTiLPAREN = 136
HeredocBodyStart = 137
StringContent = 138
HeredocContent = 139
RPAREN2 = 140
HeredocEnd = 141
HeredocBeginning = 142
AMP2 = 143
STAR2 = 144
DASH2 = 145
DASH3 = 146
DASH4 = 147
STAR3 = 148
LTLT2 = 149
HashKeySymbol = 150
IdentifierSuffix = 151
ConstantSuffix = 152
STARSTAR2 = 153
STARSTAR3 = 154
LBRACK3 = 155
ShortInterpolation = 156
Program = 157
BlockBody = 158
Statements = 159
BeginBlock = 160
EndBlock = 161
Statement = 162
Method = 163
SingletonMethod = 164
MethodRest = 165
RescueModifier = 166
RescueModifier2 = 167
BodyExpr = 168
MethodParameters = 169
MethodParameters2 = 170
BlockParameters = 171
FormalParameter = 172
SimpleFormalParameter = 173
ForwardParameter = 174
SplatParameter = 175
HashSplatParameter = 176
HashSplatNil = 177
BlockParameter = 178
KeywordParameter = 179
OptionalParameter = 180
Class = 181
Superclass = 182
SingletonClass = 183
Module = 184
Return = 185
Yield = 186
Break = 187
Next = 188
Return2 = 189
Yield2 = 190
Break2 = 191
Next2 = 192
Redo = 193
Retry = 194
IfModifier = 195
UnlessModifier = 196
WhileModifier = 197
UntilModifier = 198
RescueModifier3 = 199
While = 200
Until = 201
For = 202
In = 203
Do = 204
Case = 205
CaseMatch = 206
When = 207
InClause = 208
Pattern = 209
Guard = 210
IfGuard = 211
UnlessGuard = 212
PatternTopExprBody = 213
ArrayPatternN = 214
PatternExpr = 215
AsPattern = 216
PatternExprAlt = 217
AlternativePattern = 218
ArrayPatternBody = 219
ArrayPattern = 220
FindPatternBody = 221
FindPattern = 222
HashPatternBody = 223
KeywordPattern = 224
HashPatternAnyRest = 225
HashPattern = 226
PatternExprBasic = 227
ParenthesizedPattern = 228
PatternValue = 229
Range = 230
PatternPrimitive = 231
PatternLambda = 232
PatternLiteral = 233
KeywordVariable = 234
VariableReferencePattern = 235
ExpressionReferencePattern = 236
PatternConstant = 237
ScopeResolution = 238
If = 239
Unless = 240
Elsif = 241
Else = 242
Then = 243
Begin = 244
Ensure = 245
Rescue = 246
Exceptions = 247
ExceptionVariable = 248
BodyStatement = 249
BodyStatement2 = 250
Expression = 251
MatchPattern = 252
TestPattern = 253
Arg = 254
Unary = 255
Binary = 256
Primary = 257
ParenthesizedStatements = 258
ElementReference = 259
ScopeResolution2 = 260
Call5 = 261
Call = 262
Call2 = 263
ChainedCommandCall = 264
Call3 = 265
ArgumentList = 266
ArgumentList2 = 267
ArgumentListWithTrailingComma = 268
Argument = 269
ForwardArgument = 270
SplatArgument = 271
HashSplatArgument = 272
BlockArgument = 273
DoBlock = 274
Block = 275
Assignment = 276
Assignment2 = 277
OperatorAssignment = 278
OperatorAssignment2 = 279
Conditional = 280
Range2 = 281
Binary2 = 282
Binary3 = 283
Unary2 = 284
Unary3 = 285
Unary4 = 286
Unary5 = 287
Literal = 288
Numeric = 289
SimpleNumeric = 290
RightAssignmentList = 291
LeftAssignmentList = 292
Mlhs = 293
DestructuredLeftAssignment = 294
RestAssignment = 295
FunctionIdentifier = 296
Call4 = 297
Lhs = 298
Variable = 299
Operator = 300
MethodName = 301
NonlocalVariable = 302
Setter = 303
Undef = 304
Alias = 305
IntOrFloat = 306
Complex = 307
Rational = 308
Nil = 309
HashKeySymbol2 = 310
HashKeySymbol3 = 311
ChainedString = 312
Interpolation = 313
String = 314
Subshell = 315
StringArray = 316
SymbolArray = 317
DelimitedSymbol = 318
Regex = 319
HeredocBody = 320
LiteralContents = 321
Array = 322
Hash = 323
Pair = 324
Lambda = 325
EmptyStatement = 326
Terminator = 327
StatementsRepeat1 = 328
ParametersRepeat1 = 329
BlockParametersRepeat1 = 330
CaseRepeat1 = 331
CaseMatchRepeat1 = 332
WhenRepeat1 = 333
ArrayPatternNRepeat1 = 334
AlternativePatternRepeat1 = 335
HashPatternBodyRepeat1 = 336
ExceptionsRepeat1 = 337
BodyStatementRepeat1 = 338
CommandArgumentListRepeat1 = 339
MlhsRepeat1 = 340
UndefRepeat1 = 341
ChainedStringRepeat1 = 342
StringArrayRepeat1 = 343
SymbolArrayRepeat1 = 344
HeredocBodyRepeat1 = 345
HashRepeat1 = 346
BareString = 347
BareSymbol = 348
DestructuredParameter = 349
LambdaParameters = 350
Error = 351
Trait Implementations§
impl Eq for Ruby
Source§impl FromPrimitive for Ruby
impl FromPrimitive for Ruby
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 Ruby
Auto Trait Implementations§
impl Freeze for Ruby
impl RefUnwindSafe for Ruby
impl Send for Ruby
impl Sync for Ruby
impl Unpin for Ruby
impl UnsafeUnpin for Ruby
impl UnwindSafe for Ruby
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.