Enum boa::object::ObjectKind
source · [−]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
sourceimpl Debug for ObjectKind
impl Debug for ObjectKind
sourceimpl Display for ObjectKind
impl Display for ObjectKind
sourceimpl Drop for ObjectKind
impl Drop for ObjectKind
sourceimpl Finalize for ObjectKind
impl Finalize for ObjectKind
sourceimpl Trace for ObjectKind
impl Trace for ObjectKind
sourcefn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects Read more
Auto Trait Implementations
impl !RefUnwindSafe for ObjectKind
impl !Send for ObjectKind
impl !Sync for ObjectKind
impl Unpin for ObjectKind
impl !UnwindSafe for ObjectKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more