Skip to main content

PredefinedAtom

Enum PredefinedAtom 

Source
#[repr(u32)]
pub enum PredefinedAtom {
Show 205 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 = 38, Interface = 39, Let = 40, Package = 41, Private = 42, Protected = 43, Public = 44, Static = 45, Yield = 46, Await = 47, Empty = 48, Length = 51, Message = 52, Errors = 54, Stack = 57, Name = 58, ToString = 59, ToLocaleString = 60, ValueOf = 61, Eval = 62, Prototype = 63, Constructor = 64, Configurable = 65, Writable = 66, Enumerable = 67, Value = 68, Getter = 69, Setter = 70, Of = 71, UnderscoreProto = 72, Undefined = 73, NumberLower = 74, BooleanLower = 75, StringLower = 76, ObjectLower = 77, SymbolLower = 78, Integer = 79, Unknown = 80, ArgumentsLower = 81, Callee = 82, Caller = 83, LastIndex = 93, Target = 94, Index = 95, Input = 96, DefineProperties = 97, Apply = 98, Join = 99, Split = 100, Construct = 101, GetPrototypeOf = 102, SetPrototypeOf = 103, IsExtensible = 104, PreventExtensions = 105, Has = 106, DeleteProperty = 107, DefineProperty = 108, GetOwnPropertyDescriptor = 109, OwnKeys = 110, Add = 111, Done = 112, Next = 113, Values = 114, Source = 115, Flags = 116, Global = 117, Unicode = 118, Raw = 119, NewTarget = 121, ThisActiveFunc = 122, HomeObject = 123, ComputedField = 124, StaticComputedField = 125, ClassFieldsInit = 126, Brand = 127, HashConstructor = 128, As = 129, From = 130, Meta = 132, StarDefault = 133, Star = 134, Module = 135, Then = 136, Resolve = 137, Reject = 138, PromiseLower = 139, ProxyLower = 140, Revoke = 141, Async = 142, Exec = 143, Groups = 144, Status = 146, Reason = 147, GlobalThis = 148, Bigint = 149, ToJSON = 153, MaxByteLength = 154, Object = 157, Array = 158, Error = 159, Number = 160, String = 161, Boolean = 162, Symbol = 163, Arguments = 164, Math = 165, JSON = 166, Date = 167, Function = 168, GeneratorFunction = 169, ForInIterator = 170, Iterator = 194, RegExp = 171, ArrayBuffer = 172, SharedArrayBuffer = 173, Uint8ClampedArray = 174, Int8Array = 175, Uint8Array = 176, Int16Array = 177, Uint16Array = 178, Int32Array = 179, Uint32Array = 180, BigInt64Array = 181, BigUint64Array = 182, Float16Array = 183, Float32Array = 184, Float64Array = 185, DataView = 186, BigInt = 187, Map = 190, Set = 191, WeakMap = 192, WeakSet = 193, MapIterator = 198, SetIterator = 199, ArrayIterator = 200, StringIterator = 201, RegExpStringIterator = 202, Generator = 203, Proxy = 204, Promise = 205, PromiseResolveFunction = 206, PromiseRejectFunction = 207, AsyncFunction = 208, AsyncFunctionResolve = 209, AsyncFunctionReject = 210, AsyncGeneratorFunction = 211, AsyncGenerator = 212, EvalError = 213, RangeError = 214, ReferenceError = 215, SyntaxError = 216, TypeError = 217, URIError = 218, InternalError = 219, DOMException = 220, SymbolAsyncIterator = 238, SymbolIterator = 227, SymbolMatch = 228, SymbolMatchAll = 229, SymbolReplace = 230, SymbolSearch = 231, SymbolSplit = 232, SymbolToPrimitive = 226, SymbolToStringTag = 233, SymbolIsConcatSpreadable = 234, SymbolHasInstance = 235, SymbolSpecies = 236, SymbolUnscopables = 237,
}
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 = 38

“implements”

§

Interface = 39

“interface”

§

Let = 40

“let”

§

Package = 41

“package”

§

Private = 42

“private”

§

Protected = 43

“protected”

§

Public = 44

“public”

§

Static = 45

“static”

§

Yield = 46

“yield”

§

Await = 47

“await”

§

Empty = 48

“”

§

Length = 51

“length”

§

Message = 52

“message”

§

Errors = 54

“errors”

§

Stack = 57

“stack”

§

Name = 58

“name”

§

ToString = 59

“toString”

§

ToLocaleString = 60

“toLocaleString”

§

ValueOf = 61

“valueOf”

§

Eval = 62

“eval”

§

Prototype = 63

“prototype”

§

Constructor = 64

“constructor”

§

Configurable = 65

“configurable”

§

Writable = 66

“writable”

§

Enumerable = 67

“enumerable”

§

Value = 68

“value”

§

Getter = 69

“get”

§

Setter = 70

“set”

§

Of = 71

“of”

§

UnderscoreProto = 72

“proto”

§

Undefined = 73

“undefined”

§

NumberLower = 74

“number”

§

BooleanLower = 75

“boolean”

§

StringLower = 76

“string”

§

ObjectLower = 77

“object”

§

SymbolLower = 78

“symbol”

§

Integer = 79

“integer”

§

Unknown = 80

“unknown”

§

ArgumentsLower = 81

“arguments”

§

Callee = 82

“callee”

§

Caller = 83

“caller”

§

LastIndex = 93

“lastIndex”

§

Target = 94

“target”

§

Index = 95

“index”

§

Input = 96

“input”

§

DefineProperties = 97

“defineProperties”

§

Apply = 98

“apply”

§

Join = 99

“join”

§

Split = 100

“split”

§

Construct = 101

“construct”

§

GetPrototypeOf = 102

“getPrototypeOf”

§

SetPrototypeOf = 103

“setPrototypeOf”

§

IsExtensible = 104

“isExtensible”

§

PreventExtensions = 105

“preventExtensions”

§

Has = 106

“has”

§

DeleteProperty = 107

“deleteProperty”

§

DefineProperty = 108

“defineProperty”

§

GetOwnPropertyDescriptor = 109

“getOwnPropertyDescriptor”

§

OwnKeys = 110

“ownKeys”

§

Add = 111

“add”

§

Done = 112

“done”

§

Next = 113

“next”

§

Values = 114

“values”

§

Source = 115

“source”

§

Flags = 116

“flags”

§

Global = 117

“global”

§

Unicode = 118

“unicode”

§

Raw = 119

“raw”

§

NewTarget = 121

“new.target”

§

ThisActiveFunc = 122

“this.active_func”

§

HomeObject = 123

“<home_object>”

§

ComputedField = 124

“<computed_field>”

§

StaticComputedField = 125

“<static_computed_field>”

§

ClassFieldsInit = 126

“<class_fields_init>”

§

Brand = 127

“<brand>”

§

HashConstructor = 128

“#constructor”

§

As = 129

“as”

§

From = 130

“from”

§

Meta = 132

“meta”

§

StarDefault = 133

“default”

§

Star = 134

“*”

§

Module = 135

“Module”

§

Then = 136

“then”

§

Resolve = 137

“resolve”

§

Reject = 138

“reject”

§

PromiseLower = 139

“promise”

§

ProxyLower = 140

“proxy”

§

Revoke = 141

“revoke”

§

Async = 142

“async”

§

Exec = 143

“exec”

§

Groups = 144

“groups”

§

Status = 146

“status”

§

Reason = 147

“reason”

§

GlobalThis = 148

“globalThis”

§

Bigint = 149

“bigint”

§

ToJSON = 153

“toJSON”

§

MaxByteLength = 154

“toJSON”

§

Object = 157

“Object”

§

Array = 158

“Array”

§

Error = 159

“Error”

§

Number = 160

“Number”

§

String = 161

“String”

§

Boolean = 162

“Boolean”

§

Symbol = 163

“Symbol”

§

Arguments = 164

“Arguments”

§

Math = 165

“Math”

§

JSON = 166

“JSON”

§

Date = 167

“Date”

§

Function = 168

“Function”

§

GeneratorFunction = 169

“GeneratorFunction”

§

ForInIterator = 170

“ForInIterator”

§

Iterator = 194

“Iterator”

§

RegExp = 171

“RegExp”

§

ArrayBuffer = 172

“ArrayBuffer”

§

SharedArrayBuffer = 173

“SharedArrayBuffer”

§

Uint8ClampedArray = 174

“Uint8ClampedArray”

§

Int8Array = 175

“Int8Array”

§

Uint8Array = 176

“Uint8Array”

§

Int16Array = 177

“Int16Array”

§

Uint16Array = 178

“Uint16Array”

§

Int32Array = 179

“Int32Array”

§

Uint32Array = 180

“Uint32Array”

§

BigInt64Array = 181

“BigInt64Array”

§

BigUint64Array = 182

“BigUint64Array”

§

Float16Array = 183

Available on crate feature half only.

“Float16Array”

§

Float32Array = 184

“Float32Array”

§

Float64Array = 185

“Float64Array”

§

DataView = 186

“DataView”

§

BigInt = 187

“BigInt”

§

Map = 190

“Map”

§

Set = 191

“Set”

§

WeakMap = 192

“WeakMap”

§

WeakSet = 193

“WeakSet”

§

MapIterator = 198

“Map Iterator”

§

SetIterator = 199

“Set Iterator”

§

ArrayIterator = 200

“Array Iterator”

§

StringIterator = 201

“String Iterator”

§

RegExpStringIterator = 202

“RegExp String Iterator”

§

Generator = 203

“Generator”

§

Proxy = 204

“Proxy”

§

Promise = 205

“Promise”

§

PromiseResolveFunction = 206

“PromiseResolveFunction”

§

PromiseRejectFunction = 207

“PromiseRejectFunction”

§

AsyncFunction = 208

“AsyncFunction”

§

AsyncFunctionResolve = 209

“AsyncFunctionResolve”

§

AsyncFunctionReject = 210

“AsyncFunctionReject”

§

AsyncGeneratorFunction = 211

“AsyncGeneratorFunction”

§

AsyncGenerator = 212

“AsyncGenerator”

§

EvalError = 213

“EvalError”

§

RangeError = 214

“RangeError”

§

ReferenceError = 215

“ReferenceError”

§

SyntaxError = 216

“SyntaxError”

§

TypeError = 217

“TypeError”

§

URIError = 218

“URIError”

§

InternalError = 219

“InternalError”

§

DOMException = 220

“DOMException”

§

SymbolAsyncIterator = 238

“Symbol.asyncIterator”

§

SymbolIterator = 227

“Symbol.iterator”

§

SymbolMatch = 228

“Symbol.match”

§

SymbolMatchAll = 229

“Symbol.matchAll”

§

SymbolReplace = 230

“Symbol.replace”

§

SymbolSearch = 231

“Symbol.search”

§

SymbolSplit = 232

“Symbol.split”

§

SymbolToPrimitive = 226

“Symbol.toPrimitive”

§

SymbolToStringTag = 233

“Symbol.toStringTag”

§

SymbolIsConcatSpreadable = 234

“Symbol.isConcatSpreadable”

§

SymbolHasInstance = 235

“Symbol.hasInstance”

§

SymbolSpecies = 236

“Symbol.species”

§

SymbolUnscopables = 237

“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) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for PredefinedAtom

Source§

impl Debug for PredefinedAtom

Source§

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

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

impl Eq for PredefinedAtom

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: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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

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> ParallelSend for T

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.