Enum PredefinedAtom

Source
#[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 = 124, StarDefault = 125, Star = 126, Module = 127, Then = 128, Resolve = 129, Reject = 130, PromiseLower = 131, ProxyLower = 132, Revoke = 133, Async = 134, Exec = 135, Groups = 136, Status = 138, Reason = 139, GlobalThis = 140, Bigint = 141, ToJSON = 145, MaxByteLength = 146, Object = 147, Array = 148, Error = 149, Number = 150, String = 151, Boolean = 152, Symbol = 153, Arguments = 154, Math = 155, JSON = 156, Date = 157, Function = 158, GeneratorFunction = 159, ForInIterator = 160, RegExp = 161, ArrayBuffer = 162, SharedArrayBuffer = 163, Uint8ClampedArray = 164, Int8Array = 165, Uint8Array = 166, Int16Array = 167, Uint16Array = 168, Int32Array = 169, Uint32Array = 170, BigInt64Array = 171, BigUint64Array = 172, Float32Array = 174, Float64Array = 175, DataView = 176, BigInt = 177, Map = 180, Set = 181, WeakMap = 182, WeakSet = 183, MapIterator = 187, SetIterator = 188, ArrayIterator = 189, StringIterator = 190, RegExpStringIterator = 191, Generator = 192, Proxy = 193, Promise = 194, PromiseResolveFunction = 195, PromiseRejectFunction = 196, AsyncFunction = 197, AsyncFunctionResolve = 198, AsyncFunctionReject = 199, AsyncGeneratorFunction = 200, AsyncGenerator = 201, EvalError = 202, RangeError = 203, ReferenceError = 204, SyntaxError = 205, TypeError = 206, URIError = 207, InternalError = 208, SymbolAsyncIterator = 223, SymbolIterator = 212, SymbolMatch = 213, SymbolMatchAll = 214, SymbolReplace = 215, SymbolSearch = 216, SymbolSplit = 217, SymbolToStringTag = 218, SymbolIsConcatSpreadable = 219, SymbolHasInstance = 220, SymbolSpecies = 221, SymbolUnscopables = 222,
}
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 = 124

“meta”

§

StarDefault = 125

default

§

Star = 126

“*”

§

Module = 127

“Module”

§

Then = 128

“then”

§

Resolve = 129

“resolve”

§

Reject = 130

“reject”

§

PromiseLower = 131

“promise”

§

ProxyLower = 132

“proxy”

§

Revoke = 133

“revoke”

§

Async = 134

“async”

§

Exec = 135

“exec”

§

Groups = 136

“groups”

§

Status = 138

“status”

§

Reason = 139

“reason”

§

GlobalThis = 140

“globalThis”

§

Bigint = 141

“bigint”

§

ToJSON = 145

“toJSON”

§

MaxByteLength = 146

“toJSON”

§

Object = 147

“Object”

§

Array = 148

“Array”

§

Error = 149

“Error”

§

Number = 150

“Number”

§

String = 151

“String”

§

Boolean = 152

“Boolean”

§

Symbol = 153

“Symbol”

§

Arguments = 154

“Arguments”

§

Math = 155

“Math”

§

JSON = 156

“JSON”

§

Date = 157

“Date”

§

Function = 158

“Function”

§

GeneratorFunction = 159

“GeneratorFunction”

§

ForInIterator = 160

“ForInIterator”

§

RegExp = 161

“RegExp”

§

ArrayBuffer = 162

“ArrayBuffer”

§

SharedArrayBuffer = 163

“SharedArrayBuffer”

§

Uint8ClampedArray = 164

“Uint8ClampedArray”

§

Int8Array = 165

“Int8Array”

§

Uint8Array = 166

“Uint8Array”

§

Int16Array = 167

“Int16Array”

§

Uint16Array = 168

“Uint16Array”

§

Int32Array = 169

“Int32Array”

§

Uint32Array = 170

“Uint32Array”

§

BigInt64Array = 171

“BigInt64Array”

§

BigUint64Array = 172

“BigUint64Array”

§

Float32Array = 174

“Float32Array”

§

Float64Array = 175

“Float64Array”

§

DataView = 176

“DataView”

§

BigInt = 177

“BigInt”

§

Map = 180

“Map”

§

Set = 181

“Set”

§

WeakMap = 182

“WeakMap”

§

WeakSet = 183

“WeakSet”

§

MapIterator = 187

“Map Iterator”

§

SetIterator = 188

“Set Iterator”

§

ArrayIterator = 189

“Array Iterator”

§

StringIterator = 190

“String Iterator”

§

RegExpStringIterator = 191

“RegExp String Iterator”

§

Generator = 192

“Generator”

§

Proxy = 193

“Proxy”

§

Promise = 194

“Promise”

§

PromiseResolveFunction = 195

“PromiseResolveFunction”

§

PromiseRejectFunction = 196

“PromiseRejectFunction”

§

AsyncFunction = 197

“AsyncFunction”

§

AsyncFunctionResolve = 198

“AsyncFunctionResolve”

§

AsyncFunctionReject = 199

“AsyncFunctionReject”

§

AsyncGeneratorFunction = 200

“AsyncGeneratorFunction”

§

AsyncGenerator = 201

“AsyncGenerator”

§

EvalError = 202

“EvalError”

§

RangeError = 203

“RangeError”

§

ReferenceError = 204

“ReferenceError”

§

SyntaxError = 205

“SyntaxError”

§

TypeError = 206

“TypeError”

§

URIError = 207

“URIError”

§

InternalError = 208

“InternalError”

§

SymbolAsyncIterator = 223

“Symbol.asyncIterator”

§

SymbolIterator = 212

“Symbol.iterator”

§

SymbolMatch = 213

“Symbol.match”

§

SymbolMatchAll = 214

“Symbol.matchAll”

§

SymbolReplace = 215

“Symbol.replace”

§

SymbolSearch = 216

“Symbol.search”

§

SymbolSplit = 217

“Symbol.split”

§

SymbolToStringTag = 218

“Symbol.toStringTag”

§

SymbolIsConcatSpreadable = 219

“Symbol.isConcatSpreadable”

§

SymbolHasInstance = 220

“Symbol.hasInstance”

§

SymbolSpecies = 221

“Symbol.species”

§

SymbolUnscopables = 222

“Symbol.unscopables”

Implementations§

Source§

impl PredefinedAtom

Source

pub const fn is_symbol(self) -> bool

Source

pub const fn to_str(self) -> &'static str

Trait Implementations§

Source§

impl Clone for PredefinedAtom

Source§

fn clone(&self) -> PredefinedAtom

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PredefinedAtom

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for PredefinedAtom

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<'js> IntoAtom<'js> for PredefinedAtom

Source§

fn into_atom(self, ctx: &Ctx<'js>) -> Result<Atom<'js>>

Source§

impl<'js> JsLifetime<'js> for PredefinedAtom

Source§

type Changed<'to> = PredefinedAtom

The target which has the same type as a Self but with another lifetime 't
Source§

impl PartialEq for PredefinedAtom

Source§

fn eq(&self, other: &PredefinedAtom) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for PredefinedAtom

Source§

impl Eq for PredefinedAtom

Source§

impl StructuralPartialEq for PredefinedAtom

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ParallelSend for T