pub enum Python {
Show 275 variants
End = 0,
Identifier = 1,
SEMI = 2,
Import = 3,
DOT = 4,
From = 5,
Future = 6,
LPAREN = 7,
RPAREN = 8,
COMMA = 9,
As = 10,
STAR = 11,
Print = 12,
GTGT = 13,
Assert = 14,
COLONEQ = 15,
Return = 16,
Del = 17,
Raise = 18,
Pass = 19,
Break = 20,
Continue = 21,
If = 22,
COLON = 23,
Elif = 24,
Else = 25,
Match = 26,
Case = 27,
Async = 28,
For = 29,
In = 30,
While = 31,
Try = 32,
Except = 33,
STAR2 = 34,
Finally = 35,
With = 36,
Def = 37,
DASHGT = 38,
STARSTAR = 39,
Global = 40,
Nonlocal = 41,
Exec = 42,
Type2 = 43,
EQ = 44,
Class = 45,
LBRACK = 46,
RBRACK = 47,
AT = 48,
DASH = 49,
UNDERSCORE = 50,
PIPE = 51,
LBRACE = 52,
RBRACE = 53,
PLUS = 54,
Not = 55,
And = 56,
Or = 57,
SLASH = 58,
PERCENT = 59,
SLASHSLASH = 60,
AMP = 61,
CARET = 62,
LTLT = 63,
TILDE = 64,
Is = 65,
LT = 66,
LTEQ = 67,
EQEQ = 68,
BANGEQ = 69,
GTEQ = 70,
GT = 71,
LTGT = 72,
Lambda3 = 73,
PLUSEQ = 74,
DASHEQ = 75,
STAREQ = 76,
SLASHEQ = 77,
ATEQ = 78,
SLASHSLASHEQ = 79,
PERCENTEQ = 80,
STARSTAREQ = 81,
GTGTEQ = 82,
LTLTEQ = 83,
AMPEQ = 84,
CARETEQ = 85,
PIPEEQ = 86,
Yield2 = 87,
Ellipsis = 88,
EscapeSequence = 89,
BSLASH = 90,
FormatSpecifierToken1 = 91,
TypeConversion = 92,
Integer = 93,
Float = 94,
Await2 = 95,
True = 96,
False = 97,
None = 98,
Comment = 99,
LineContinuation = 100,
Newline = 101,
Indent = 102,
Dedent = 103,
StringStart = 104,
StringContent2 = 105,
EscapeInterpolation = 106,
StringEnd = 107,
Module = 108,
Statement = 109,
SimpleStatements = 110,
ImportStatement = 111,
ImportPrefix = 112,
RelativeImport = 113,
FutureImportStatement = 114,
ImportFromStatement = 115,
ImportList = 116,
AliasedImport = 117,
WildcardImport = 118,
PrintStatement = 119,
Chevron = 120,
AssertStatement = 121,
ExpressionStatement = 122,
NamedExpression = 123,
NamedExpressionLhs = 124,
ReturnStatement = 125,
DeleteStatement = 126,
RaiseStatement = 127,
PassStatement = 128,
BreakStatement = 129,
ContinueStatement = 130,
IfStatement = 131,
ElifClause = 132,
ElseClause = 133,
MatchStatement = 134,
Block = 135,
CaseClause = 136,
ForStatement = 137,
WhileStatement = 138,
TryStatement = 139,
ExceptClause = 140,
FinallyClause = 141,
WithStatement = 142,
WithClause = 143,
WithItem = 144,
FunctionDefinition = 145,
Parameters = 146,
LambdaParameters = 147,
ListSplat = 148,
DictionarySplat = 149,
GlobalStatement = 150,
NonlocalStatement = 151,
ExecStatement = 152,
TypeAliasStatement = 153,
ClassDefinition = 154,
TypeParameter = 155,
ParenthesizedListSplat = 156,
ArgumentList = 157,
DecoratedDefinition = 158,
Decorator = 159,
Block2 = 160,
ExpressionList = 161,
DottedName = 162,
CasePattern = 163,
SimplePattern = 164,
AsPattern = 165,
UnionPattern = 166,
ListPattern = 167,
TuplePattern = 168,
DictPattern = 169,
KeyValuePattern = 170,
KeywordPattern = 171,
SplatPattern = 172,
ClassPattern = 173,
ComplexPattern = 174,
Parameters2 = 175,
Patterns = 176,
Parameter = 177,
Pattern = 178,
TuplePattern2 = 179,
ListPattern2 = 180,
DefaultParameter = 181,
TypedDefaultParameter = 182,
ListSplatPattern = 183,
DictionarySplatPattern = 184,
AsPattern2 = 185,
ExpressionWithinForInClause = 186,
Expression = 187,
PrimaryExpression = 188,
NotOperator = 189,
BooleanOperator = 190,
BinaryOperator = 191,
UnaryOperator = 192,
Notin = 193,
Isnot = 194,
ComparisonOperator = 195,
Lambda = 196,
Lambda2 = 197,
Assignment = 198,
AugmentedAssignment = 199,
PatternList = 200,
RightHandSide = 201,
Yield = 202,
Attribute = 203,
Subscript = 204,
Slice = 205,
Call = 206,
TypedParameter = 207,
Type = 208,
SplatType = 209,
GenericType = 210,
UnionType = 211,
ConstrainedType = 212,
MemberType = 213,
KeywordArgument = 214,
List = 215,
Set = 216,
Tuple = 217,
Dictionary = 218,
Pair = 219,
ListComprehension = 220,
DictionaryComprehension = 221,
SetComprehension = 222,
GeneratorExpression = 223,
ComprehensionClauses = 224,
ParenthesizedExpression = 225,
CollectionElements = 226,
ForInClause = 227,
IfClause = 228,
ConditionalExpression = 229,
ConcatenatedString = 230,
String = 231,
StringContent = 232,
Interpolation = 233,
FExpression = 234,
NotEscapeSequence = 235,
FormatSpecifier = 236,
Await = 237,
PositionalSeparator = 238,
KeywordSeparator = 239,
ModuleRepeat1 = 240,
SimpleStatementsRepeat1 = 241,
ImportPrefixRepeat1 = 242,
ImportListRepeat1 = 243,
PrintStatementRepeat1 = 244,
AssertStatementRepeat1 = 245,
IfStatementRepeat1 = 246,
MatchStatementRepeat1 = 247,
MatchBlockRepeat1 = 248,
CaseClauseRepeat1 = 249,
TryStatementRepeat1 = 250,
ExceptClauseRepeat1 = 251,
WithClauseRepeat1 = 252,
GlobalStatementRepeat1 = 253,
TypeParameterRepeat1 = 254,
ArgumentListRepeat1 = 255,
DecoratedDefinitionRepeat1 = 256,
DottedNameRepeat1 = 257,
UnionPatternRepeat1 = 258,
DictPatternRepeat1 = 259,
ParametersRepeat1 = 260,
PatternsRepeat1 = 261,
ComparisonOperatorRepeat1 = 262,
SubscriptRepeat1 = 263,
DictionaryRepeat1 = 264,
ComprehensionClausesRepeat1 = 265,
CollectionElementsRepeat1 = 266,
ForInClauseRepeat1 = 267,
ConcatenatedStringRepeat1 = 268,
StringRepeat1 = 269,
StringContentRepeat1 = 270,
FormatSpecifierRepeat1 = 271,
AsPatternTarget = 272,
FormatExpression = 273,
Error = 274,
}Variants§
End = 0
Identifier = 1
SEMI = 2
Import = 3
DOT = 4
From = 5
Future = 6
LPAREN = 7
RPAREN = 8
COMMA = 9
As = 10
STAR = 11
Print = 12
GTGT = 13
Assert = 14
COLONEQ = 15
Return = 16
Del = 17
Raise = 18
Pass = 19
Break = 20
Continue = 21
If = 22
COLON = 23
Elif = 24
Else = 25
Match = 26
Case = 27
Async = 28
For = 29
In = 30
While = 31
Try = 32
Except = 33
STAR2 = 34
Finally = 35
With = 36
Def = 37
DASHGT = 38
STARSTAR = 39
Global = 40
Nonlocal = 41
Exec = 42
Type2 = 43
EQ = 44
Class = 45
LBRACK = 46
RBRACK = 47
AT = 48
DASH = 49
UNDERSCORE = 50
PIPE = 51
LBRACE = 52
RBRACE = 53
PLUS = 54
Not = 55
And = 56
Or = 57
SLASH = 58
PERCENT = 59
SLASHSLASH = 60
AMP = 61
CARET = 62
LTLT = 63
TILDE = 64
Is = 65
LT = 66
LTEQ = 67
EQEQ = 68
BANGEQ = 69
GTEQ = 70
GT = 71
LTGT = 72
Lambda3 = 73
PLUSEQ = 74
DASHEQ = 75
STAREQ = 76
SLASHEQ = 77
ATEQ = 78
SLASHSLASHEQ = 79
PERCENTEQ = 80
STARSTAREQ = 81
GTGTEQ = 82
LTLTEQ = 83
AMPEQ = 84
CARETEQ = 85
PIPEEQ = 86
Yield2 = 87
Ellipsis = 88
EscapeSequence = 89
BSLASH = 90
FormatSpecifierToken1 = 91
TypeConversion = 92
Integer = 93
Float = 94
Await2 = 95
True = 96
False = 97
None = 98
Comment = 99
LineContinuation = 100
Newline = 101
Indent = 102
Dedent = 103
StringStart = 104
StringContent2 = 105
EscapeInterpolation = 106
StringEnd = 107
Module = 108
Statement = 109
SimpleStatements = 110
ImportStatement = 111
ImportPrefix = 112
RelativeImport = 113
FutureImportStatement = 114
ImportFromStatement = 115
ImportList = 116
AliasedImport = 117
WildcardImport = 118
PrintStatement = 119
Chevron = 120
AssertStatement = 121
ExpressionStatement = 122
NamedExpression = 123
NamedExpressionLhs = 124
ReturnStatement = 125
DeleteStatement = 126
RaiseStatement = 127
PassStatement = 128
BreakStatement = 129
ContinueStatement = 130
IfStatement = 131
ElifClause = 132
ElseClause = 133
MatchStatement = 134
Block = 135
CaseClause = 136
ForStatement = 137
WhileStatement = 138
TryStatement = 139
ExceptClause = 140
FinallyClause = 141
WithStatement = 142
WithClause = 143
WithItem = 144
FunctionDefinition = 145
Parameters = 146
LambdaParameters = 147
ListSplat = 148
DictionarySplat = 149
GlobalStatement = 150
NonlocalStatement = 151
ExecStatement = 152
TypeAliasStatement = 153
ClassDefinition = 154
TypeParameter = 155
ParenthesizedListSplat = 156
ArgumentList = 157
DecoratedDefinition = 158
Decorator = 159
Block2 = 160
ExpressionList = 161
DottedName = 162
CasePattern = 163
SimplePattern = 164
AsPattern = 165
UnionPattern = 166
ListPattern = 167
TuplePattern = 168
DictPattern = 169
KeyValuePattern = 170
KeywordPattern = 171
SplatPattern = 172
ClassPattern = 173
ComplexPattern = 174
Parameters2 = 175
Patterns = 176
Parameter = 177
Pattern = 178
TuplePattern2 = 179
ListPattern2 = 180
DefaultParameter = 181
TypedDefaultParameter = 182
ListSplatPattern = 183
DictionarySplatPattern = 184
AsPattern2 = 185
ExpressionWithinForInClause = 186
Expression = 187
PrimaryExpression = 188
NotOperator = 189
BooleanOperator = 190
BinaryOperator = 191
UnaryOperator = 192
Notin = 193
Isnot = 194
ComparisonOperator = 195
Lambda = 196
Lambda2 = 197
Assignment = 198
AugmentedAssignment = 199
PatternList = 200
RightHandSide = 201
Yield = 202
Attribute = 203
Subscript = 204
Slice = 205
Call = 206
TypedParameter = 207
Type = 208
SplatType = 209
GenericType = 210
UnionType = 211
ConstrainedType = 212
MemberType = 213
KeywordArgument = 214
List = 215
Set = 216
Tuple = 217
Dictionary = 218
Pair = 219
ListComprehension = 220
DictionaryComprehension = 221
SetComprehension = 222
GeneratorExpression = 223
ComprehensionClauses = 224
ParenthesizedExpression = 225
CollectionElements = 226
ForInClause = 227
IfClause = 228
ConditionalExpression = 229
ConcatenatedString = 230
String = 231
StringContent = 232
Interpolation = 233
FExpression = 234
NotEscapeSequence = 235
FormatSpecifier = 236
Await = 237
PositionalSeparator = 238
KeywordSeparator = 239
ModuleRepeat1 = 240
SimpleStatementsRepeat1 = 241
ImportPrefixRepeat1 = 242
ImportListRepeat1 = 243
PrintStatementRepeat1 = 244
AssertStatementRepeat1 = 245
IfStatementRepeat1 = 246
MatchStatementRepeat1 = 247
MatchBlockRepeat1 = 248
CaseClauseRepeat1 = 249
TryStatementRepeat1 = 250
ExceptClauseRepeat1 = 251
WithClauseRepeat1 = 252
GlobalStatementRepeat1 = 253
TypeParameterRepeat1 = 254
ArgumentListRepeat1 = 255
DecoratedDefinitionRepeat1 = 256
DottedNameRepeat1 = 257
UnionPatternRepeat1 = 258
DictPatternRepeat1 = 259
ParametersRepeat1 = 260
PatternsRepeat1 = 261
ComparisonOperatorRepeat1 = 262
SubscriptRepeat1 = 263
DictionaryRepeat1 = 264
ComprehensionClausesRepeat1 = 265
CollectionElementsRepeat1 = 266
ForInClauseRepeat1 = 267
ConcatenatedStringRepeat1 = 268
StringRepeat1 = 269
StringContentRepeat1 = 270
FormatSpecifierRepeat1 = 271
AsPatternTarget = 272
FormatExpression = 273
Error = 274
Trait Implementations§
impl Eq for Python
Source§impl FromPrimitive for Python
impl FromPrimitive for Python
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 Python
Auto Trait Implementations§
impl Freeze for Python
impl RefUnwindSafe for Python
impl Send for Python
impl Sync for Python
impl Unpin for Python
impl UnsafeUnpin for Python
impl UnwindSafe for Python
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.