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