Enum boa::object::ObjectKind[][src]

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)

Tuple Fields of ArrayIterator

0: ArrayIterator

Tuple Fields of Map

0: OrderedMap<JsValue>
MapIterator(MapIterator)

Tuple Fields of MapIterator

0: MapIterator
RegExp(Box<RegExp>)

Tuple Fields of RegExp

0: Box<RegExp>
RegExpStringIterator(RegExpStringIterator)

Tuple Fields of RegExpStringIterator

0: RegExpStringIterator
BigInt(JsBigInt)

Tuple Fields of BigInt

0: JsBigInt
Boolean(bool)

Tuple Fields of Boolean

0: bool
ForInIterator(ForInIterator)

Tuple Fields of ForInIterator

0: ForInIterator
Function(Function)

Tuple Fields of Function

0: Function

Tuple Fields of Set

0: OrderedSet<JsValue>
SetIterator(SetIterator)

Tuple Fields of SetIterator

0: SetIterator
String(JsString)

Tuple Fields of String

0: JsString
StringIterator(StringIterator)

Tuple Fields of StringIterator

0: StringIterator
Number(f64)

Tuple Fields of Number

0: f64
Symbol(JsSymbol)

Tuple Fields of Symbol

0: JsSymbol
Error
Ordinary
Date(Date)

Tuple Fields of Date

0: Date
Global
NativeObject(Box<dyn NativeObject>)

Tuple Fields of NativeObject

0: 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

Performs the conversion.

Performs the conversion.

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.