logo
pub enum ObjectKind {
Show 21 variants Array, ArrayIterator(ArrayIterator), Map(OrderedMap<JsValue>), MapIterator(MapIterator), RegExp(Box<RegExp>), RegExpStringIterator(RegExpStringIterator), BigInt(JsBigInt), Boolean(bool), ForInIterator(ForInIterator), Function(Function), Set(OrderedSet<JsValue>), SetIterator(SetIterator), String(JsString), StringIterator(StringIterator), Number(f64), Symbol(JsSymbol), Error, Ordinary, Date(Date), Global, NativeObject(Box<dyn NativeObject>),
}
Expand description

Defines the different types of objects.

Variants

Array

ArrayIterator(ArrayIterator)

Map(OrderedMap<JsValue>)

MapIterator(MapIterator)

RegExp(Box<RegExp>)

RegExpStringIterator(RegExpStringIterator)

BigInt(JsBigInt)

Boolean(bool)

ForInIterator(ForInIterator)

Function(Function)

Set(OrderedSet<JsValue>)

SetIterator(SetIterator)

String(JsString)

StringIterator(StringIterator)

Number(f64)

Symbol(JsSymbol)

Error

Ordinary

Date(Date)

Global

NativeObject(Box<dyn NativeObject>)

Trait Implementations

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
Marks all contained Gcs.
Increments the root-count of all contained Gcs.
Decrements the root-count of all contained Gcs.
Runs Finalize::finalize() on this object and all contained subobjects Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Convert the Rust type which implements NativeObject to a &dyn Any.
Convert the Rust type which implements NativeObject to a &mut dyn Any.
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.