#[repr(u32)]pub enum PredefinedAtom {
Show 202 variants
Null = 1,
False = 2,
True = 3,
If = 4,
Else = 5,
Return = 6,
Var = 7,
This = 8,
Delete = 9,
Void = 10,
Typeof = 11,
New = 12,
In = 13,
Instanceof = 14,
Do = 15,
While = 16,
For = 17,
Break = 18,
Continue = 19,
Switch = 20,
Case = 21,
Default = 22,
Throw = 23,
Try = 24,
Catch = 25,
Finally = 26,
FunctionKw = 27,
Debugger = 28,
With = 29,
Class = 30,
Const = 31,
Enum = 32,
Export = 33,
Extends = 34,
Import = 35,
Super = 36,
Implements = 37,
Interface = 38,
Let = 39,
Package = 40,
Private = 41,
Protected = 42,
Public = 43,
Static = 44,
Yield = 45,
Await = 46,
Empty = 47,
Length = 50,
Message = 51,
Errors = 53,
Stack = 54,
Name = 55,
ToString = 56,
ToLocaleString = 57,
ValueOf = 58,
Eval = 59,
Prototype = 60,
Constructor = 61,
Configurable = 62,
Writable = 63,
Enumerable = 64,
Value = 65,
Getter = 66,
Setter = 67,
Of = 68,
UnderscoreProto = 69,
Undefined = 70,
NumberLower = 71,
BooleanLower = 72,
StringLower = 73,
ObjectLower = 74,
SymbolLower = 75,
Integer = 76,
Unknown = 77,
ArgumentsLower = 78,
Callee = 79,
Caller = 80,
LastIndex = 86,
Target = 87,
Index = 88,
Input = 89,
DefineProperties = 90,
Apply = 91,
Join = 92,
Concat = 93,
Split = 94,
Construct = 95,
GetPrototypeOf = 96,
SetPrototypeOf = 97,
IsExtensible = 98,
PreventExtensions = 99,
Has = 100,
DeleteProperty = 101,
DefineProperty = 102,
GetOwnPropertyDescriptor = 103,
OwnKeys = 104,
Add = 105,
Done = 106,
Next = 107,
Values = 108,
Source = 109,
Flags = 110,
Global = 111,
Unicode = 112,
Raw = 113,
NewTarget = 114,
ThisActiveFunc = 115,
HomeObject = 116,
ComputedField = 117,
StaticComputedField = 118,
ClassFieldsInit = 119,
Brand = 120,
HashConstructor = 121,
As = 122,
From = 123,
Meta = 125,
StarDefault = 126,
Star = 127,
Module = 128,
Then = 129,
Resolve = 130,
Reject = 131,
PromiseLower = 132,
ProxyLower = 133,
Revoke = 134,
Async = 135,
Exec = 136,
Groups = 137,
Status = 139,
Reason = 140,
GlobalThis = 141,
Bigint = 142,
ToJSON = 146,
MaxByteLength = 147,
Object = 148,
Array = 149,
Error = 150,
Number = 151,
String = 152,
Boolean = 153,
Symbol = 154,
Arguments = 155,
Math = 156,
JSON = 157,
Date = 158,
Function = 159,
GeneratorFunction = 160,
ForInIterator = 161,
RegExp = 162,
ArrayBuffer = 163,
SharedArrayBuffer = 164,
Uint8ClampedArray = 165,
Int8Array = 166,
Uint8Array = 167,
Int16Array = 168,
Uint16Array = 169,
Int32Array = 170,
Uint32Array = 171,
BigInt64Array = 172,
BigUint64Array = 173,
Float32Array = 175,
Float64Array = 176,
DataView = 177,
BigInt = 178,
Map = 181,
Set = 182,
WeakMap = 183,
WeakSet = 184,
MapIterator = 189,
SetIterator = 190,
ArrayIterator = 191,
StringIterator = 192,
RegExpStringIterator = 193,
Generator = 194,
Proxy = 195,
Promise = 196,
PromiseResolveFunction = 197,
PromiseRejectFunction = 198,
AsyncFunction = 199,
AsyncFunctionResolve = 200,
AsyncFunctionReject = 201,
AsyncGeneratorFunction = 202,
AsyncGenerator = 203,
EvalError = 204,
RangeError = 205,
ReferenceError = 206,
SyntaxError = 207,
TypeError = 208,
URIError = 209,
InternalError = 210,
SymbolAsyncIterator = 226,
SymbolIterator = 215,
SymbolMatch = 216,
SymbolMatchAll = 217,
SymbolReplace = 218,
SymbolSearch = 219,
SymbolSplit = 220,
SymbolToStringTag = 221,
SymbolIsConcatSpreadable = 222,
SymbolHasInstance = 223,
SymbolSpecies = 224,
SymbolUnscopables = 225,
}Expand description
A collection of atoms which are predefined in quickjs.
Using these over Atom::from_str can be more performant as these don’t need to be looked up
in a hashmap.
Variants§
Null = 1
“null”
False = 2
“false”
True = 3
“true”
If = 4
“if”
Else = 5
“else”
Return = 6
“return”
Var = 7
“var”
This = 8
“this”
Delete = 9
“delete”
Void = 10
“void”
Typeof = 11
“typeof”
New = 12
“new”
In = 13
“in”
Instanceof = 14
“instanceof”
Do = 15
“do”
While = 16
“while”
For = 17
“for”
Break = 18
“break”
Continue = 19
“continue”
Switch = 20
“switch”
Case = 21
“case”
Default = 22
“default”
Throw = 23
“throw”
Try = 24
“try”
Catch = 25
“catch”
Finally = 26
“finally”
FunctionKw = 27
“function”
Debugger = 28
“debugger”
With = 29
“with”
Class = 30
“class”
Const = 31
“const”
Enum = 32
“enum”
Export = 33
“export”
Extends = 34
“extends”
Import = 35
“import”
Super = 36
“super”
Implements = 37
“implements”
Interface = 38
“interface”
Let = 39
“let”
Package = 40
“package”
Private = 41
“private”
Protected = 42
“protected”
Public = 43
“public”
Static = 44
“static”
Yield = 45
“yield”
Await = 46
“await”
Empty = 47
“”
Length = 50
“length”
Message = 51
“message”
Errors = 53
“errors”
Stack = 54
“stack”
Name = 55
“name”
ToString = 56
“toString”
ToLocaleString = 57
“toLocaleString”
ValueOf = 58
“valueOf”
Eval = 59
“eval”
Prototype = 60
“prototype”
Constructor = 61
“constructor”
Configurable = 62
“configurable”
Writable = 63
“writable”
Enumerable = 64
“enumerable”
Value = 65
“value”
Getter = 66
“get”
Setter = 67
“set”
Of = 68
“of”
UnderscoreProto = 69
“proto”
Undefined = 70
“undefined”
NumberLower = 71
“number”
BooleanLower = 72
“boolean”
StringLower = 73
“string”
ObjectLower = 74
“object”
SymbolLower = 75
“symbol”
Integer = 76
“integer”
Unknown = 77
“unknown”
ArgumentsLower = 78
“arguments”
Callee = 79
“callee”
Caller = 80
“caller”
LastIndex = 86
“lastIndex”
Target = 87
“target”
Index = 88
“index”
Input = 89
“input”
DefineProperties = 90
“defineProperties”
Apply = 91
“apply”
Join = 92
“join”
Concat = 93
“concat”
Split = 94
“split”
Construct = 95
“construct”
GetPrototypeOf = 96
“getPrototypeOf”
SetPrototypeOf = 97
“setPrototypeOf”
IsExtensible = 98
“isExtensible”
PreventExtensions = 99
“preventExtensions”
Has = 100
“has”
DeleteProperty = 101
“deleteProperty”
DefineProperty = 102
“defineProperty”
GetOwnPropertyDescriptor = 103
“getOwnPropertyDescriptor”
OwnKeys = 104
“ownKeys”
Add = 105
“add”
Done = 106
“done”
Next = 107
“next”
Values = 108
“values”
Source = 109
“source”
Flags = 110
“flags”
Global = 111
“global”
Unicode = 112
“unicode”
Raw = 113
“raw”
NewTarget = 114
“new.target”
ThisActiveFunc = 115
“this.active_func”
HomeObject = 116
“<home_object>”
ComputedField = 117
“<computed_field>”
StaticComputedField = 118
“<static_computed_field>”
ClassFieldsInit = 119
“<class_fields_init>”
Brand = 120
“<brand>”
HashConstructor = 121
“#constructor”
As = 122
“as”
From = 123
“from”
Meta = 125
“meta”
StarDefault = 126
“default”
Star = 127
“*”
Module = 128
“Module”
Then = 129
“then”
Resolve = 130
“resolve”
Reject = 131
“reject”
PromiseLower = 132
“promise”
ProxyLower = 133
“proxy”
Revoke = 134
“revoke”
Async = 135
“async”
Exec = 136
“exec”
Groups = 137
“groups”
Status = 139
“status”
Reason = 140
“reason”
GlobalThis = 141
“globalThis”
Bigint = 142
“bigint”
ToJSON = 146
“toJSON”
MaxByteLength = 147
“toJSON”
Object = 148
“Object”
Array = 149
“Array”
Error = 150
“Error”
Number = 151
“Number”
String = 152
“String”
Boolean = 153
“Boolean”
Symbol = 154
“Symbol”
Arguments = 155
“Arguments”
Math = 156
“Math”
JSON = 157
“JSON”
Date = 158
“Date”
Function = 159
“Function”
GeneratorFunction = 160
“GeneratorFunction”
ForInIterator = 161
“ForInIterator”
RegExp = 162
“RegExp”
ArrayBuffer = 163
“ArrayBuffer”
“SharedArrayBuffer”
Uint8ClampedArray = 165
“Uint8ClampedArray”
Int8Array = 166
“Int8Array”
Uint8Array = 167
“Uint8Array”
Int16Array = 168
“Int16Array”
Uint16Array = 169
“Uint16Array”
Int32Array = 170
“Int32Array”
Uint32Array = 171
“Uint32Array”
BigInt64Array = 172
“BigInt64Array”
BigUint64Array = 173
“BigUint64Array”
Float32Array = 175
“Float32Array”
Float64Array = 176
“Float64Array”
DataView = 177
“DataView”
BigInt = 178
“BigInt”
Map = 181
“Map”
Set = 182
“Set”
WeakMap = 183
“WeakMap”
WeakSet = 184
“WeakSet”
MapIterator = 189
“Map Iterator”
SetIterator = 190
“Set Iterator”
ArrayIterator = 191
“Array Iterator”
StringIterator = 192
“String Iterator”
RegExpStringIterator = 193
“RegExp String Iterator”
Generator = 194
“Generator”
Proxy = 195
“Proxy”
Promise = 196
“Promise”
PromiseResolveFunction = 197
“PromiseResolveFunction”
PromiseRejectFunction = 198
“PromiseRejectFunction”
AsyncFunction = 199
“AsyncFunction”
AsyncFunctionResolve = 200
“AsyncFunctionResolve”
AsyncFunctionReject = 201
“AsyncFunctionReject”
AsyncGeneratorFunction = 202
“AsyncGeneratorFunction”
AsyncGenerator = 203
“AsyncGenerator”
EvalError = 204
“EvalError”
RangeError = 205
“RangeError”
ReferenceError = 206
“ReferenceError”
SyntaxError = 207
“SyntaxError”
TypeError = 208
“TypeError”
URIError = 209
“URIError”
InternalError = 210
“InternalError”
SymbolAsyncIterator = 226
“Symbol.asyncIterator”
SymbolIterator = 215
“Symbol.iterator”
SymbolMatch = 216
“Symbol.match”
SymbolMatchAll = 217
“Symbol.matchAll”
SymbolReplace = 218
“Symbol.replace”
SymbolSearch = 219
“Symbol.search”
SymbolSplit = 220
“Symbol.split”
SymbolToStringTag = 221
“Symbol.toStringTag”
SymbolIsConcatSpreadable = 222
“Symbol.isConcatSpreadable”
SymbolHasInstance = 223
“Symbol.hasInstance”
SymbolSpecies = 224
“Symbol.species”
SymbolUnscopables = 225
“Symbol.unscopables”
Implementations§
Trait Implementations§
Source§impl Clone for PredefinedAtom
impl Clone for PredefinedAtom
Source§fn clone(&self) -> PredefinedAtom
fn clone(&self) -> PredefinedAtom
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PredefinedAtom
impl Debug for PredefinedAtom
Source§impl Hash for PredefinedAtom
impl Hash for PredefinedAtom
Source§impl<'js> IntoAtom<'js> for PredefinedAtom
impl<'js> IntoAtom<'js> for PredefinedAtom
Source§impl<'js> JsLifetime<'js> for PredefinedAtom
impl<'js> JsLifetime<'js> for PredefinedAtom
Source§type Changed<'to> = PredefinedAtom
type Changed<'to> = PredefinedAtom
Self but with another lifetime 'tSource§impl PartialEq for PredefinedAtom
impl PartialEq for PredefinedAtom
impl Copy for PredefinedAtom
impl Eq for PredefinedAtom
impl StructuralPartialEq for PredefinedAtom
Auto Trait Implementations§
impl Freeze for PredefinedAtom
impl RefUnwindSafe for PredefinedAtom
impl Send for PredefinedAtom
impl Sync for PredefinedAtom
impl Unpin for PredefinedAtom
impl UnwindSafe for PredefinedAtom
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more