Skip to main content

Intrinsic

Enum Intrinsic 

Source
#[repr(u8)]
pub enum Intrinsic {
Show 92 variants ObjectPrototype = 0, FunctionPrototype = 1, ArrayPrototype = 2, StringPrototype = 3, RegExpPrototype = 4, NumberPrototype = 5, BooleanPrototype = 6, SymbolPrototype = 7, BigIntPrototype = 8, DatePrototype = 9, ErrorPrototype = 10, EvalErrorPrototype = 11, RangeErrorPrototype = 12, ReferenceErrorPrototype = 13, SyntaxErrorPrototype = 14, TypeErrorPrototype = 15, InternalErrorPrototype = 16, UriErrorPrototype = 17, AggregateErrorPrototype = 18, OutOfMemoryError = 19, ThrowTypeError = 20, Object = 21, Function = 22, Array = 23, String = 24, Number = 25, Boolean = 26, Symbol = 27, BigInt = 28, RegExp = 29, Date = 30, Promise = 31, Proxy = 32, Eval = 33, IteratorPrototype = 34, AsyncIteratorPrototype = 35, ArrayIteratorPrototype = 36, StringIteratorPrototype = 37, MapIteratorPrototype = 38, SetIteratorPrototype = 39, RegExpStringIteratorPrototype = 40, IteratorHelperPrototype = 41, Iterator = 42, WrapForValidIteratorPrototype = 43, AsyncFromSyncIteratorPrototype = 44, GeneratorFunctionPrototype = 45, GeneratorPrototype = 46, AsyncFunctionPrototype = 47, AsyncGeneratorFunctionPrototype = 48, AsyncGeneratorPrototype = 49, GeneratorFunction = 50, AsyncFunction = 51, AsyncGeneratorFunction = 52, PromisePrototype = 53, MapPrototype = 54, SetPrototype = 55, WeakMapPrototype = 56, WeakSetPrototype = 57, WeakRefPrototype = 58, FinalizationRegistryPrototype = 59, ArrayBufferPrototype = 60, SharedArrayBufferPrototype = 61, DataViewPrototype = 62, TypedArray = 63, TypedArrayPrototype = 64, Int8ArrayPrototype = 65, Uint8ArrayPrototype = 66, Uint8ClampedArrayPrototype = 67, Int16ArrayPrototype = 68, Uint16ArrayPrototype = 69, Int32ArrayPrototype = 70, Uint32ArrayPrototype = 71, Float16ArrayPrototype = 72, Float32ArrayPrototype = 73, Float64ArrayPrototype = 74, BigInt64ArrayPrototype = 75, BigUint64ArrayPrototype = 76, Int8Array = 77, Uint8Array = 78, Uint8ClampedArray = 79, Int16Array = 80, Uint16Array = 81, Int32Array = 82, Uint32Array = 83, Float16Array = 84, Float32Array = 85, Float64Array = 86, BigInt64Array = 87, BigUint64Array = 88, ArrayBuffer = 89, ArrayValues = 90, GlobalLexical = 91,
}
Expand description

Intrinsic objects held by the realm: the prototypes and the constructors the natives and the loop name. Each is a fixed root.

Variants§

§

ObjectPrototype = 0

§

FunctionPrototype = 1

§

ArrayPrototype = 2

§

StringPrototype = 3

§

RegExpPrototype = 4

§

NumberPrototype = 5

§

BooleanPrototype = 6

§

SymbolPrototype = 7

§

BigIntPrototype = 8

§

DatePrototype = 9

§

ErrorPrototype = 10

§

EvalErrorPrototype = 11

§

RangeErrorPrototype = 12

§

ReferenceErrorPrototype = 13

§

SyntaxErrorPrototype = 14

§

TypeErrorPrototype = 15

§

InternalErrorPrototype = 16

§

UriErrorPrototype = 17

§

AggregateErrorPrototype = 18

§

OutOfMemoryError = 19

A preallocated InternalError: out of memory, thrown when the heap cannot allocate the error itself.

§

ThrowTypeError = 20

%ThrowTypeError%.

§

Object = 21

§

Function = 22

§

Array = 23

§

String = 24

§

Number = 25

§

Boolean = 26

§

Symbol = 27

§

BigInt = 28

§

RegExp = 29

§

Date = 30

§

Promise = 31

§

Proxy = 32

§

Eval = 33

§

IteratorPrototype = 34

§

AsyncIteratorPrototype = 35

§

ArrayIteratorPrototype = 36

§

StringIteratorPrototype = 37

§

MapIteratorPrototype = 38

§

SetIteratorPrototype = 39

§

RegExpStringIteratorPrototype = 40

§

IteratorHelperPrototype = 41

§

Iterator = 42

§

WrapForValidIteratorPrototype = 43

§

AsyncFromSyncIteratorPrototype = 44

§

GeneratorFunctionPrototype = 45

%GeneratorFunction.prototype%.

§

GeneratorPrototype = 46

%GeneratorFunction.prototype.prototype%.

§

AsyncFunctionPrototype = 47

§

AsyncGeneratorFunctionPrototype = 48

§

AsyncGeneratorPrototype = 49

§

GeneratorFunction = 50

§

AsyncFunction = 51

§

AsyncGeneratorFunction = 52

§

PromisePrototype = 53

§

MapPrototype = 54

§

SetPrototype = 55

§

WeakMapPrototype = 56

§

WeakSetPrototype = 57

§

WeakRefPrototype = 58

§

FinalizationRegistryPrototype = 59

§

ArrayBufferPrototype = 60

§

SharedArrayBufferPrototype = 61

§

DataViewPrototype = 62

§

TypedArray = 63

§

TypedArrayPrototype = 64

§

Int8ArrayPrototype = 65

§

Uint8ArrayPrototype = 66

§

Uint8ClampedArrayPrototype = 67

§

Int16ArrayPrototype = 68

§

Uint16ArrayPrototype = 69

§

Int32ArrayPrototype = 70

§

Uint32ArrayPrototype = 71

§

Float16ArrayPrototype = 72

§

Float32ArrayPrototype = 73

§

Float64ArrayPrototype = 74

§

BigInt64ArrayPrototype = 75

§

BigUint64ArrayPrototype = 76

§

Int8Array = 77

§

Uint8Array = 78

§

Uint8ClampedArray = 79

§

Int16Array = 80

§

Uint16Array = 81

§

Int32Array = 82

§

Uint32Array = 83

§

Float16Array = 84

§

Float32Array = 85

§

Float64Array = 86

§

BigInt64Array = 87

§

BigUint64Array = 88

§

ArrayBuffer = 89

§

ArrayValues = 90

Array.prototype.values, which is also arguments[@@iterator].

§

GlobalLexical = 91

The global lexical environment’s dictionary.

Implementations§

Source§

impl Intrinsic

Source

pub const ALL: &'static [Intrinsic]

Source

pub const COUNT: usize

Trait Implementations§

Source§

impl Clone for Intrinsic

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 Intrinsic

Source§

impl Debug for Intrinsic

Source§

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

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

impl Eq for Intrinsic

Source§

impl PartialEq for Intrinsic

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 Intrinsic

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<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> 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.