pub enum Mozjs {
Show 267 variants
End = 0,
Identifier = 1,
HashBangLine = 2,
Export = 3,
STAR = 4,
Default = 5,
As = 6,
LBRACE = 7,
COMMA = 8,
RBRACE = 9,
Import2 = 10,
From = 11,
With = 12,
Var = 13,
Let = 14,
Const = 15,
Using = 16,
Await = 17,
Of = 18,
Else = 19,
If = 20,
Switch = 21,
For = 22,
LPAREN = 23,
SEMI = 24,
RPAREN = 25,
In = 26,
While = 27,
Do = 28,
Try = 29,
Break = 30,
Continue = 31,
Debugger = 32,
Return = 33,
Throw = 34,
COLON = 35,
Case = 36,
Catch = 37,
Finally = 38,
Yield = 39,
EQ = 40,
LBRACK = 41,
RBRACK = 42,
HtmlCharacterReference = 43,
LT = 44,
GT = 45,
Identifier2 = 46,
DOT = 47,
LTSLASH = 48,
SLASHGT = 49,
DQUOTE = 50,
SQUOTE = 51,
StringFragment = 52,
StringFragment2 = 53,
Class2 = 54,
Extends = 55,
Async = 56,
Function = 57,
EQGT = 58,
OptionalChain = 59,
New = 60,
PLUSEQ = 61,
DASHEQ = 62,
STAREQ = 63,
SLASHEQ = 64,
PERCENTEQ = 65,
CARETEQ = 66,
AMPEQ = 67,
PIPEEQ = 68,
GTGTEQ = 69,
GTGTGTEQ = 70,
LTLTEQ = 71,
STARSTAREQ = 72,
AMPAMPEQ = 73,
PIPEPIPEEQ = 74,
QMARKQMARKEQ = 75,
DOTDOTDOT = 76,
AMPAMP = 77,
PIPEPIPE = 78,
GTGT = 79,
GTGTGT = 80,
LTLT = 81,
AMP = 82,
CARET = 83,
PIPE = 84,
PLUS = 85,
DASH = 86,
SLASH = 87,
PERCENT = 88,
STARSTAR = 89,
LTEQ = 90,
EQEQ = 91,
EQEQEQ = 92,
BANGEQ = 93,
BANGEQEQ = 94,
GTEQ = 95,
QMARKQMARK = 96,
Instanceof = 97,
BANG = 98,
TILDE = 99,
Typeof = 100,
Void = 101,
Delete = 102,
PLUSPLUS = 103,
DASHDASH = 104,
StringFragment3 = 105,
StringFragment4 = 106,
EscapeSequence = 107,
Comment = 108,
BQUOTE = 109,
DOLLARLBRACE = 110,
SLASH2 = 111,
RegexPattern = 112,
RegexFlags = 113,
Number = 114,
PrivatePropertyIdentifier = 115,
Target = 116,
Meta = 117,
This = 118,
Super = 119,
True = 120,
False = 121,
Null = 122,
Undefined = 123,
AT = 124,
Static = 125,
Staticget = 126,
Get = 127,
Set = 128,
Preproc = 129,
AutomaticSemicolon = 130,
StringFragment5 = 131,
QMARK = 132,
HtmlComment = 133,
JsxText = 134,
Program = 135,
ExportStatement = 136,
NamespaceExport = 137,
ExportClause = 138,
ExportSpecifier = 139,
ModuleExportName = 140,
Declaration = 141,
Import = 142,
ImportStatement = 143,
ImportClause = 144,
FromClause = 145,
NamespaceImport = 146,
NamedImports = 147,
ImportSpecifier = 148,
ImportAttribute = 149,
Statement = 150,
ExpressionStatement = 151,
VariableDeclaration = 152,
LexicalDeclaration = 153,
UsingDeclaration = 154,
VariableDeclarator = 155,
StatementBlock = 156,
ElseClause = 157,
IfStatement = 158,
SwitchStatement = 159,
ForStatement = 160,
ForInStatement = 161,
ForHeader = 162,
WhileStatement = 163,
DoStatement = 164,
TryStatement = 165,
WithStatement = 166,
BreakStatement = 167,
ContinueStatement = 168,
DebuggerStatement = 169,
ReturnStatement = 170,
ThrowStatement = 171,
EmptyStatement = 172,
LabeledStatement = 173,
SwitchBody = 174,
SwitchCase = 175,
SwitchDefault = 176,
CatchClause = 177,
FinallyClause = 178,
ParenthesizedExpression = 179,
Expression = 180,
PrimaryExpression = 181,
YieldExpression = 182,
Object = 183,
ObjectPattern = 184,
AssignmentPattern = 185,
ObjectAssignmentPattern = 186,
Array = 187,
ArrayPattern = 188,
JsxElement = 189,
JsxExpression = 190,
JsxOpeningElement = 191,
MemberExpression = 192,
JsxNamespaceName = 193,
JsxClosingElement = 194,
JsxSelfClosingElement = 195,
JsxAttribute = 196,
String = 197,
Class = 198,
ClassDeclaration = 199,
ClassHeritage = 200,
FunctionExpression = 201,
FunctionDeclaration = 202,
GeneratorFunction = 203,
GeneratorFunctionDeclaration = 204,
ArrowFunction = 205,
CallExpression = 206,
NewExpression = 207,
AwaitExpression = 208,
MemberExpression2 = 209,
SubscriptExpression = 210,
AssignmentExpression = 211,
AugmentedAssignmentLhs = 212,
AugmentedAssignmentExpression = 213,
Initializer = 214,
DestructuringPattern = 215,
SpreadElement = 216,
TernaryExpression = 217,
BinaryExpression = 218,
UnaryExpression = 219,
UpdateExpression = 220,
SequenceExpression = 221,
String2 = 222,
TemplateString = 223,
TemplateSubstitution = 224,
Regex = 225,
MetaProperty = 226,
Arguments = 227,
Decorator = 228,
MemberExpression3 = 229,
CallExpression2 = 230,
ClassBody = 231,
FieldDefinition = 232,
FormalParameters = 233,
ClassStaticBlock = 234,
Pattern = 235,
RestPattern = 236,
MethodDefinition = 237,
Pair = 238,
PairPattern = 239,
PropertyName = 240,
ComputedPropertyName = 241,
ProgramRepeat1 = 242,
ExportStatementRepeat1 = 243,
ExportClauseRepeat1 = 244,
NamedImportsRepeat1 = 245,
VariableDeclarationRepeat1 = 246,
SwitchBodyRepeat1 = 247,
ObjectRepeat1 = 248,
ObjectPatternRepeat1 = 249,
ArrayRepeat1 = 250,
ArrayPatternRepeat1 = 251,
JsxElementRepeat1 = 252,
JsxOpeningElementRepeat1 = 253,
JsxStringRepeat1 = 254,
JsxStringRepeat2 = 255,
SequenceExpressionRepeat1 = 256,
StringRepeat1 = 257,
StringRepeat2 = 258,
TemplateStringRepeat1 = 259,
ClassBodyRepeat1 = 260,
FormalParametersRepeat1 = 261,
PropertyIdentifier = 262,
ShorthandPropertyIdentifier = 263,
ShorthandPropertyIdentifierPattern = 264,
StatementIdentifier = 265,
Error = 266,
}Variants§
End = 0
Identifier = 1
HashBangLine = 2
Export = 3
STAR = 4
Default = 5
As = 6
LBRACE = 7
COMMA = 8
RBRACE = 9
Import2 = 10
From = 11
With = 12
Var = 13
Let = 14
Const = 15
Using = 16
Await = 17
Of = 18
Else = 19
If = 20
Switch = 21
For = 22
LPAREN = 23
SEMI = 24
RPAREN = 25
In = 26
While = 27
Do = 28
Try = 29
Break = 30
Continue = 31
Debugger = 32
Return = 33
Throw = 34
COLON = 35
Case = 36
Catch = 37
Finally = 38
Yield = 39
EQ = 40
LBRACK = 41
RBRACK = 42
HtmlCharacterReference = 43
LT = 44
GT = 45
Identifier2 = 46
DOT = 47
LTSLASH = 48
SLASHGT = 49
DQUOTE = 50
SQUOTE = 51
StringFragment = 52
StringFragment2 = 53
Class2 = 54
Extends = 55
Async = 56
Function = 57
EQGT = 58
OptionalChain = 59
New = 60
PLUSEQ = 61
DASHEQ = 62
STAREQ = 63
SLASHEQ = 64
PERCENTEQ = 65
CARETEQ = 66
AMPEQ = 67
PIPEEQ = 68
GTGTEQ = 69
GTGTGTEQ = 70
LTLTEQ = 71
STARSTAREQ = 72
AMPAMPEQ = 73
PIPEPIPEEQ = 74
QMARKQMARKEQ = 75
DOTDOTDOT = 76
AMPAMP = 77
PIPEPIPE = 78
GTGT = 79
GTGTGT = 80
LTLT = 81
AMP = 82
CARET = 83
PIPE = 84
PLUS = 85
DASH = 86
SLASH = 87
PERCENT = 88
STARSTAR = 89
LTEQ = 90
EQEQ = 91
EQEQEQ = 92
BANGEQ = 93
BANGEQEQ = 94
GTEQ = 95
QMARKQMARK = 96
Instanceof = 97
BANG = 98
TILDE = 99
Typeof = 100
Void = 101
Delete = 102
PLUSPLUS = 103
DASHDASH = 104
StringFragment3 = 105
StringFragment4 = 106
EscapeSequence = 107
Comment = 108
BQUOTE = 109
DOLLARLBRACE = 110
SLASH2 = 111
RegexPattern = 112
RegexFlags = 113
Number = 114
PrivatePropertyIdentifier = 115
Target = 116
Meta = 117
This = 118
Super = 119
True = 120
False = 121
Null = 122
Undefined = 123
AT = 124
Static = 125
Staticget = 126
Get = 127
Set = 128
Preproc = 129
AutomaticSemicolon = 130
StringFragment5 = 131
QMARK = 132
HtmlComment = 133
JsxText = 134
Program = 135
ExportStatement = 136
NamespaceExport = 137
ExportClause = 138
ExportSpecifier = 139
ModuleExportName = 140
Declaration = 141
Import = 142
ImportStatement = 143
ImportClause = 144
FromClause = 145
NamespaceImport = 146
NamedImports = 147
ImportSpecifier = 148
ImportAttribute = 149
Statement = 150
ExpressionStatement = 151
VariableDeclaration = 152
LexicalDeclaration = 153
UsingDeclaration = 154
VariableDeclarator = 155
StatementBlock = 156
ElseClause = 157
IfStatement = 158
SwitchStatement = 159
ForStatement = 160
ForInStatement = 161
ForHeader = 162
WhileStatement = 163
DoStatement = 164
TryStatement = 165
WithStatement = 166
BreakStatement = 167
ContinueStatement = 168
DebuggerStatement = 169
ReturnStatement = 170
ThrowStatement = 171
EmptyStatement = 172
LabeledStatement = 173
SwitchBody = 174
SwitchCase = 175
SwitchDefault = 176
CatchClause = 177
FinallyClause = 178
ParenthesizedExpression = 179
Expression = 180
PrimaryExpression = 181
YieldExpression = 182
Object = 183
ObjectPattern = 184
AssignmentPattern = 185
ObjectAssignmentPattern = 186
Array = 187
ArrayPattern = 188
JsxElement = 189
JsxExpression = 190
JsxOpeningElement = 191
MemberExpression = 192
JsxNamespaceName = 193
JsxClosingElement = 194
JsxSelfClosingElement = 195
JsxAttribute = 196
String = 197
Class = 198
ClassDeclaration = 199
ClassHeritage = 200
FunctionExpression = 201
FunctionDeclaration = 202
GeneratorFunction = 203
GeneratorFunctionDeclaration = 204
ArrowFunction = 205
CallExpression = 206
NewExpression = 207
AwaitExpression = 208
MemberExpression2 = 209
SubscriptExpression = 210
AssignmentExpression = 211
AugmentedAssignmentLhs = 212
AugmentedAssignmentExpression = 213
Initializer = 214
DestructuringPattern = 215
SpreadElement = 216
TernaryExpression = 217
BinaryExpression = 218
UnaryExpression = 219
UpdateExpression = 220
SequenceExpression = 221
String2 = 222
TemplateString = 223
TemplateSubstitution = 224
Regex = 225
MetaProperty = 226
Arguments = 227
Decorator = 228
MemberExpression3 = 229
CallExpression2 = 230
ClassBody = 231
FieldDefinition = 232
FormalParameters = 233
ClassStaticBlock = 234
Pattern = 235
RestPattern = 236
MethodDefinition = 237
Pair = 238
PairPattern = 239
PropertyName = 240
ComputedPropertyName = 241
ProgramRepeat1 = 242
ExportStatementRepeat1 = 243
ExportClauseRepeat1 = 244
NamedImportsRepeat1 = 245
VariableDeclarationRepeat1 = 246
SwitchBodyRepeat1 = 247
ObjectRepeat1 = 248
ObjectPatternRepeat1 = 249
ArrayRepeat1 = 250
ArrayPatternRepeat1 = 251
JsxElementRepeat1 = 252
JsxOpeningElementRepeat1 = 253
JsxStringRepeat1 = 254
JsxStringRepeat2 = 255
SequenceExpressionRepeat1 = 256
StringRepeat1 = 257
StringRepeat2 = 258
TemplateStringRepeat1 = 259
ClassBodyRepeat1 = 260
FormalParametersRepeat1 = 261
PropertyIdentifier = 262
ShorthandPropertyIdentifier = 263
ShorthandPropertyIdentifierPattern = 264
StatementIdentifier = 265
Error = 266
Trait Implementations§
impl Eq for Mozjs
Source§impl FromPrimitive for Mozjs
impl FromPrimitive for Mozjs
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 Mozjs
Auto Trait Implementations§
impl Freeze for Mozjs
impl RefUnwindSafe for Mozjs
impl Send for Mozjs
impl Sync for Mozjs
impl Unpin for Mozjs
impl UnsafeUnpin for Mozjs
impl UnwindSafe for Mozjs
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.