#[repr(u32)]
pub enum PredefinedAtom {
Show 212 variants Null, False, True, If, Else, Return, Var, This, Delete, Void, Typeof, New, In, Instanceof, Do, While, For, Break, Continue, Switch, Case, Default, Throw, Try, Catch, Finally, FunctionKw, Debugger, With, Class, Const, Enum, Export, Extends, Import, Super, Implements, Interface, Let, Package, Private, Protected, Public, Static, Yield, Await, Empty, Length, FileName, LineNumber, Message, Errors, Stack, Name, ToString, ToLocaleString, ValueOf, Eval, Prototype, Constructor, Configurable, Writable, Enumerable, Value, Getter, Setter, Of, UnderscoreProto, Undefined, NumberLower, BooleanLower, StringLower, ObjectLower, SymbolLower, Integer, Unknown, ArgumentsLower, Callee, Caller, LastIndex, Target, Index, Input, DefineProperties, Apply, Join, Concat, Split, Construct, GetPrototypeOf, SetPrototypeOf, IsExtensible, PreventExtensions, Has, DeleteProperty, DefineProperty, GetOwnPropertyDescriptor, OwnKeys, Add, Done, Next, Values, Source, Flags, Global, Unicode, Raw, NewTarget, ThisActiveFunc, HomeObject, ComputedField, StaticComputedField, ClassFieldsInit, Brand, HashConstructor, As, From, Meta, StarDefault, Star, Module, Then, Resolve, Reject, PromiseLower, ProxyLower, Revoke, Async, Exec, Groups, Status, Reason, GlobalThis, Bigint, Bigfloat, Bigdecimal, RoundingMode, MaximumSignificantDigits, MaximumFractionDigits, ToJSON, Object, Array, Error, Number, String, Boolean, Symbol, Arguments, Math, JSON, Date, Function, GeneratorFunction, ForInIterator, RegExp, ArrayBuffer, SharedArrayBuffer, Uint8ClampedArray, Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, BigInt64Array, BigUint64Array, Float32Array, Float64Array, DataView, BigInt, BigFloat, BigFloatEnv, BigDecimal, OperatorSet, Operators, Map, Set, WeakMap, WeakSet, MapIterator, SetIterator, ArrayIterator, StringIterator, RegExpStringIterator, Generator, Proxy, Promise, PromiseResolveFunction, PromiseRejectFunction, AsyncFunction, AsyncFunctionResolve, AsyncFunctionReject, AsyncGeneratorFunction, AsyncGenerator, EvalError, RangeError, ReferenceError, SyntaxError, TypeError, URIError, InternalError, SymbolIterator, SymbolMatch, SymbolMatchAll, SymbolReplace, SymbolSearch, SymbolSplit, SymbolToStringTag, SymbolIsConcatSpreadable, SymbolHasInstance, SymbolSpecies, SymbolUnscopables,
}
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

“null”

§

False

“false”

§

True

“true”

§

If

“if”

§

Else

“else”

§

Return

“return”

§

Var

“var”

§

This

“this”

§

Delete

“delete”

§

Void

“void”

§

Typeof

“typeof”

§

New

“new”

§

In

“in”

§

Instanceof

“instanceof”

§

Do

“do”

§

While

“while”

§

For

“for”

§

Break

“break”

§

Continue

“continue”

§

Switch

“switch”

§

Case

“case”

§

Default

“default”

§

Throw

“throw”

§

Try

“try”

§

Catch

“catch”

§

Finally

“finally”

§

FunctionKw

“function”

§

Debugger

“debugger”

§

With

“with”

§

Class

“class”

§

Const

“const”

§

Enum

“enum”

§

Export

“export”

§

Extends

“extends”

§

Import

“import”

§

Super

“super”

§

Implements

“implements”

§

Interface

“interface”

§

Let

“let”

§

Package

“package”

§

Private

“private”

§

Protected

“protected”

§

Public

“public”

§

Static

“static”

§

Yield

“yield”

§

Await

“await”

§

Empty

“”

§

Length

“length”

§

FileName

“fileName”

§

LineNumber

“lineNumber”

§

Message

“message”

§

Errors

“errors”

§

Stack

“stack”

§

Name

“name”

§

ToString

“toString”

§

ToLocaleString

“toLocaleString”

§

ValueOf

“valueOf”

§

Eval

“eval”

§

Prototype

“prototype”

§

Constructor

“constructor”

§

Configurable

“configurable”

§

Writable

“writable”

§

Enumerable

“enumerable”

§

Value

“value”

§

Getter

“get”

§

Setter

“set”

§

Of

“of”

§

UnderscoreProto

proto

§

Undefined

“undefined”

§

NumberLower

“number”

§

BooleanLower

“boolean”

§

StringLower

“string”

§

ObjectLower

“object”

§

SymbolLower

“symbol”

§

Integer

“integer”

§

Unknown

“unknown”

§

ArgumentsLower

“arguments”

§

Callee

“callee”

§

Caller

“caller”

§

LastIndex

“lastIndex”

§

Target

“target”

§

Index

“index”

§

Input

“input”

§

DefineProperties

“defineProperties”

§

Apply

“apply”

§

Join

“join”

§

Concat

“concat”

§

Split

“split”

§

Construct

“construct”

§

GetPrototypeOf

“getPrototypeOf”

§

SetPrototypeOf

“setPrototypeOf”

§

IsExtensible

“isExtensible”

§

PreventExtensions

“preventExtensions”

§

Has

“has”

§

DeleteProperty

“deleteProperty”

§

DefineProperty

“defineProperty”

§

GetOwnPropertyDescriptor

“getOwnPropertyDescriptor”

§

OwnKeys

“ownKeys”

§

Add

“add”

§

Done

“done”

§

Next

“next”

§

Values

“values”

§

Source

“source”

§

Flags

“flags”

§

Global

“global”

§

Unicode

“unicode”

§

Raw

“raw”

§

NewTarget

“new.target”

§

ThisActiveFunc

“this.active_func”

§

HomeObject

“<home_object>”

§

ComputedField

“<computed_field>”

§

StaticComputedField

“<static_computed_field>”

§

ClassFieldsInit

“<class_fields_init>”

§

Brand

§

HashConstructor

“#constructor”

§

As

“as”

§

From

“from”

§

Meta

“meta”

§

StarDefault

default

§

Star

“*”

§

Module

“Module”

§

Then

“then”

§

Resolve

“resolve”

§

Reject

“reject”

§

PromiseLower

“promise”

§

ProxyLower

“proxy”

§

Revoke

“revoke”

§

Async

“async”

§

Exec

“exec”

§

Groups

“groups”

§

Status

“status”

§

Reason

“reason”

§

GlobalThis

“globalThis”

§

Bigint

“bigint”

§

Bigfloat

“bigfloat”

§

Bigdecimal

“bigdecimal”

§

RoundingMode

“roundingMode”

§

MaximumSignificantDigits

“maximumSignificantDigits”

§

MaximumFractionDigits

“maximumFractionDigits”

§

ToJSON

“toJSON”

§

Object

“Object”

§

Array

“Array”

§

Error

“Error”

§

Number

“Number”

§

String

“String”

§

Boolean

“Boolean”

§

Symbol

“Symbol”

§

Arguments

“Arguments”

§

Math

“Math”

§

JSON

“JSON”

§

Date

“Date”

§

Function

“Function”

§

GeneratorFunction

“GeneratorFunction”

§

ForInIterator

“ForInIterator”

§

RegExp

“RegExp”

§

ArrayBuffer

“ArrayBuffer”

§

SharedArrayBuffer

“SharedArrayBuffer”

§

Uint8ClampedArray

“Uint8ClampedArray”

§

Int8Array

“Int8Array”

§

Uint8Array

“Uint8Array”

§

Int16Array

“Int16Array”

§

Uint16Array

“Uint16Array”

§

Int32Array

“Int32Array”

§

Uint32Array

“Uint32Array”

§

BigInt64Array

“BigInt64Array”

§

BigUint64Array

“BigUint64Array”

§

Float32Array

“Float32Array”

§

Float64Array

“Float64Array”

§

DataView

“DataView”

§

BigInt

“BigInt”

§

BigFloat

“BigFloat”

§

BigFloatEnv

“BigFloatEnv”

§

BigDecimal

“BigDecimal”

§

OperatorSet

“OperatorSet”

§

Operators

“Operators”

§

Map

“Map”

§

Set

“Set”

§

WeakMap

“WeakMap”

§

WeakSet

“WeakSet”

§

MapIterator

“Map Iterator”

§

SetIterator

“Set Iterator”

§

ArrayIterator

“Array Iterator”

§

StringIterator

“String Iterator”

§

RegExpStringIterator

“RegExp String Iterator”

§

Generator

“Generator”

§

Proxy

“Proxy”

§

Promise

“Promise”

§

PromiseResolveFunction

“PromiseResolveFunction”

§

PromiseRejectFunction

“PromiseRejectFunction”

§

AsyncFunction

“AsyncFunction”

§

AsyncFunctionResolve

“AsyncFunctionResolve”

§

AsyncFunctionReject

“AsyncFunctionReject”

§

AsyncGeneratorFunction

“AsyncGeneratorFunction”

§

AsyncGenerator

“AsyncGenerator”

§

EvalError

“EvalError”

§

RangeError

“RangeError”

§

ReferenceError

“ReferenceError”

§

SyntaxError

“SyntaxError”

§

TypeError

“TypeError”

§

URIError

“URIError”

§

InternalError

“InternalError”

§

SymbolIterator

“Symbol.iterator”

§

SymbolMatch

“Symbol.match”

§

SymbolMatchAll

“Symbol.matchAll”

§

SymbolReplace

“Symbol.replace”

§

SymbolSearch

“Symbol.search”

§

SymbolSplit

“Symbol.split”

§

SymbolToStringTag

“Symbol.toStringTag”

§

SymbolIsConcatSpreadable

“Symbol.isConcatSpreadable”

§

SymbolHasInstance

“Symbol.hasInstance”

§

SymbolSpecies

“Symbol.species”

§

SymbolUnscopables

“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 PartialEq<PredefinedAtom> for PredefinedAtom

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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 StructuralEq for PredefinedAtom

source§

impl StructuralPartialEq for PredefinedAtom

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere 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 Twhere 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> ToOwned for Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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