pub enum Go {
Show 220 variants
End = 0,
Identifier = 1,
SourceFileToken1 = 2,
SEMI = 3,
Anon4 = 4,
Package = 5,
Import = 6,
DOT = 7,
BlankIdentifier = 8,
LPAREN = 9,
RPAREN = 10,
Const = 11,
COMMA = 12,
EQ = 13,
Var = 14,
Func = 15,
LBRACK = 16,
RBRACK = 17,
DOTDOTDOT = 18,
Type = 19,
STAR = 20,
Struct = 21,
TILDE = 22,
LBRACE = 23,
RBRACE = 24,
Interface = 25,
PIPE = 26,
Map = 27,
Chan = 28,
LTDASH = 29,
COLONEQ = 30,
PLUSPLUS = 31,
DASHDASH = 32,
STAREQ = 33,
SLASHEQ = 34,
PERCENTEQ = 35,
LTLTEQ = 36,
GTGTEQ = 37,
AMPEQ = 38,
AMPCARETEQ = 39,
PLUSEQ = 40,
DASHEQ = 41,
PIPEEQ = 42,
CARETEQ = 43,
COLON = 44,
Fallthrough = 45,
Break = 46,
Continue = 47,
Goto = 48,
Return = 49,
Go = 50,
Defer = 51,
If = 52,
Else = 53,
For = 54,
Range = 55,
Switch = 56,
Case = 57,
Default = 58,
Select = 59,
Identifier2 = 60,
Identifier3 = 61,
PLUS = 62,
DASH = 63,
BANG = 64,
CARET = 65,
AMP = 66,
SLASH = 67,
PERCENT = 68,
LTLT = 69,
GTGT = 70,
AMPCARET = 71,
EQEQ = 72,
BANGEQ = 73,
LT = 74,
LTEQ = 75,
GT = 76,
GTEQ = 77,
AMPAMP = 78,
PIPEPIPE = 79,
BQUOTE = 80,
RawStringLiteralContent = 81,
DQUOTE = 82,
InterpretedStringLiteralContent = 83,
DQUOTE2 = 84,
EscapeSequence = 85,
IntLiteral = 86,
FloatLiteral = 87,
ImaginaryLiteral = 88,
RuneLiteral = 89,
Nil = 90,
True = 91,
False = 92,
Iota = 93,
Comment = 94,
SourceFile = 95,
PackageClause = 96,
ImportDeclaration = 97,
ImportSpec = 98,
Dot = 99,
ImportSpecList = 100,
Declaration = 101,
ConstDeclaration = 102,
ConstSpec = 103,
VarDeclaration = 104,
VarSpec = 105,
VarSpecList = 106,
FunctionDeclaration = 107,
MethodDeclaration = 108,
TypeParameterList = 109,
TypeParameterDeclaration = 110,
ParameterList = 111,
ParameterDeclaration = 112,
VariadicParameterDeclaration = 113,
TypeAlias = 114,
TypeDeclaration = 115,
TypeSpec = 116,
ExpressionList = 117,
ParenthesizedType = 118,
SimpleType = 119,
GenericType = 120,
TypeArguments = 121,
PointerType = 122,
ArrayType = 123,
ImplicitLengthArrayType = 124,
SliceType = 125,
StructType = 126,
NegatedType = 127,
FieldDeclarationList = 128,
FieldDeclaration = 129,
InterfaceType = 130,
MethodElem = 131,
TypeElem = 132,
MapType = 133,
ChannelType = 134,
FunctionType = 135,
Block = 136,
StatementList = 137,
Statement = 138,
EmptyStatement = 139,
SimpleStatement = 140,
ExpressionStatement = 141,
SendStatement = 142,
ReceiveStatement = 143,
IncStatement = 144,
DecStatement = 145,
AssignmentStatement = 146,
ShortVarDeclaration = 147,
LabeledStatement = 148,
LabeledStatement2 = 149,
FallthroughStatement = 150,
BreakStatement = 151,
ContinueStatement = 152,
GotoStatement = 153,
ReturnStatement = 154,
GoStatement = 155,
DeferStatement = 156,
IfStatement = 157,
ForStatement = 158,
ForClause = 159,
RangeClause = 160,
ExpressionSwitchStatement = 161,
ExpressionCase = 162,
DefaultCase = 163,
TypeSwitchStatement = 164,
TypeSwitchHeader = 165,
TypeCase = 166,
SelectStatement = 167,
CommunicationCase = 168,
Expression = 169,
ParenthesizedExpression = 170,
CallExpression = 171,
VariadicArgument = 172,
ArgumentList = 173,
ArgumentList2 = 174,
SelectorExpression = 175,
IndexExpression = 176,
SliceExpression = 177,
TypeAssertionExpression = 178,
TypeConversionExpression = 179,
TypeInstantiationExpression = 180,
CompositeLiteral = 181,
LiteralValue = 182,
LiteralElement = 183,
KeyedElement = 184,
FuncLiteral = 185,
UnaryExpression = 186,
BinaryExpression = 187,
QualifiedType = 188,
RawStringLiteral = 189,
InterpretedStringLiteral = 190,
SourceFileRepeat1 = 191,
ImportSpecListRepeat1 = 192,
ConstDeclarationRepeat1 = 193,
ConstSpecRepeat1 = 194,
VarSpecRepeat1 = 195,
VarSpecListRepeat1 = 196,
TypeParameterListRepeat1 = 197,
ParameterListRepeat1 = 198,
TypeDeclarationRepeat1 = 199,
ExpressionListRepeat1 = 200,
TypeArgumentsRepeat1 = 201,
FieldDeclarationListRepeat1 = 202,
FieldDeclarationRepeat1 = 203,
InterfaceTypeRepeat1 = 204,
TypeElemRepeat1 = 205,
StatementListRepeat1 = 206,
ExpressionSwitchStatementRepeat1 = 207,
TypeSwitchStatementRepeat1 = 208,
TypeCaseRepeat1 = 209,
SelectStatementRepeat1 = 210,
ArgumentListRepeat1 = 211,
LiteralValueRepeat1 = 212,
InterpretedStringLiteralRepeat1 = 213,
FieldIdentifier = 214,
LabelName = 215,
PackageIdentifier = 216,
TypeConstraint = 217,
TypeIdentifier = 218,
Error = 219,
}Variants§
End = 0
Identifier = 1
SourceFileToken1 = 2
SEMI = 3
Anon4 = 4
Package = 5
Import = 6
DOT = 7
BlankIdentifier = 8
LPAREN = 9
RPAREN = 10
Const = 11
COMMA = 12
EQ = 13
Var = 14
Func = 15
LBRACK = 16
RBRACK = 17
DOTDOTDOT = 18
Type = 19
STAR = 20
Struct = 21
TILDE = 22
LBRACE = 23
RBRACE = 24
Interface = 25
PIPE = 26
Map = 27
Chan = 28
LTDASH = 29
COLONEQ = 30
PLUSPLUS = 31
DASHDASH = 32
STAREQ = 33
SLASHEQ = 34
PERCENTEQ = 35
LTLTEQ = 36
GTGTEQ = 37
AMPEQ = 38
AMPCARETEQ = 39
PLUSEQ = 40
DASHEQ = 41
PIPEEQ = 42
CARETEQ = 43
COLON = 44
Fallthrough = 45
Break = 46
Continue = 47
Goto = 48
Return = 49
Go = 50
Defer = 51
If = 52
Else = 53
For = 54
Range = 55
Switch = 56
Case = 57
Default = 58
Select = 59
Identifier2 = 60
Identifier3 = 61
PLUS = 62
DASH = 63
BANG = 64
CARET = 65
AMP = 66
SLASH = 67
PERCENT = 68
LTLT = 69
GTGT = 70
AMPCARET = 71
EQEQ = 72
BANGEQ = 73
LT = 74
LTEQ = 75
GT = 76
GTEQ = 77
AMPAMP = 78
PIPEPIPE = 79
BQUOTE = 80
RawStringLiteralContent = 81
DQUOTE = 82
InterpretedStringLiteralContent = 83
DQUOTE2 = 84
EscapeSequence = 85
IntLiteral = 86
FloatLiteral = 87
ImaginaryLiteral = 88
RuneLiteral = 89
Nil = 90
True = 91
False = 92
Iota = 93
Comment = 94
SourceFile = 95
PackageClause = 96
ImportDeclaration = 97
ImportSpec = 98
Dot = 99
ImportSpecList = 100
Declaration = 101
ConstDeclaration = 102
ConstSpec = 103
VarDeclaration = 104
VarSpec = 105
VarSpecList = 106
FunctionDeclaration = 107
MethodDeclaration = 108
TypeParameterList = 109
TypeParameterDeclaration = 110
ParameterList = 111
ParameterDeclaration = 112
VariadicParameterDeclaration = 113
TypeAlias = 114
TypeDeclaration = 115
TypeSpec = 116
ExpressionList = 117
ParenthesizedType = 118
SimpleType = 119
GenericType = 120
TypeArguments = 121
PointerType = 122
ArrayType = 123
ImplicitLengthArrayType = 124
SliceType = 125
StructType = 126
NegatedType = 127
FieldDeclarationList = 128
FieldDeclaration = 129
InterfaceType = 130
MethodElem = 131
TypeElem = 132
MapType = 133
ChannelType = 134
FunctionType = 135
Block = 136
StatementList = 137
Statement = 138
EmptyStatement = 139
SimpleStatement = 140
ExpressionStatement = 141
SendStatement = 142
ReceiveStatement = 143
IncStatement = 144
DecStatement = 145
AssignmentStatement = 146
ShortVarDeclaration = 147
LabeledStatement = 148
LabeledStatement2 = 149
FallthroughStatement = 150
BreakStatement = 151
ContinueStatement = 152
GotoStatement = 153
ReturnStatement = 154
GoStatement = 155
DeferStatement = 156
IfStatement = 157
ForStatement = 158
ForClause = 159
RangeClause = 160
ExpressionSwitchStatement = 161
ExpressionCase = 162
DefaultCase = 163
TypeSwitchStatement = 164
TypeSwitchHeader = 165
TypeCase = 166
SelectStatement = 167
CommunicationCase = 168
Expression = 169
ParenthesizedExpression = 170
CallExpression = 171
VariadicArgument = 172
ArgumentList = 173
ArgumentList2 = 174
SelectorExpression = 175
IndexExpression = 176
SliceExpression = 177
TypeAssertionExpression = 178
TypeConversionExpression = 179
TypeInstantiationExpression = 180
CompositeLiteral = 181
LiteralValue = 182
LiteralElement = 183
KeyedElement = 184
FuncLiteral = 185
UnaryExpression = 186
BinaryExpression = 187
QualifiedType = 188
RawStringLiteral = 189
InterpretedStringLiteral = 190
SourceFileRepeat1 = 191
ImportSpecListRepeat1 = 192
ConstDeclarationRepeat1 = 193
ConstSpecRepeat1 = 194
VarSpecRepeat1 = 195
VarSpecListRepeat1 = 196
TypeParameterListRepeat1 = 197
ParameterListRepeat1 = 198
TypeDeclarationRepeat1 = 199
ExpressionListRepeat1 = 200
TypeArgumentsRepeat1 = 201
FieldDeclarationListRepeat1 = 202
FieldDeclarationRepeat1 = 203
InterfaceTypeRepeat1 = 204
TypeElemRepeat1 = 205
StatementListRepeat1 = 206
ExpressionSwitchStatementRepeat1 = 207
TypeSwitchStatementRepeat1 = 208
TypeCaseRepeat1 = 209
SelectStatementRepeat1 = 210
ArgumentListRepeat1 = 211
LiteralValueRepeat1 = 212
InterpretedStringLiteralRepeat1 = 213
FieldIdentifier = 214
LabelName = 215
PackageIdentifier = 216
TypeConstraint = 217
TypeIdentifier = 218
Error = 219
Trait Implementations§
impl Eq for Go
Source§impl FromPrimitive for Go
impl FromPrimitive for Go
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 Go
Auto Trait Implementations§
impl Freeze for Go
impl RefUnwindSafe for Go
impl Send for Go
impl Sync for Go
impl Unpin for Go
impl UnsafeUnpin for Go
impl UnwindSafe for Go
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.