pub enum ObjectKind {
Ordinary,
Array {
elements: Vec<Value>,
},
Function(Callable),
}Expand description
What kind of object this is.
Variants§
Ordinary
An ordinary object: only its property table.
Array
An array: dense elements plus a property table for everything else.
Function(Callable)
A function or a class constructor.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ObjectKind
impl !Send for ObjectKind
impl !Sync for ObjectKind
impl !UnwindSafe for ObjectKind
impl Forget for ObjectKind
impl Freeze for ObjectKind
impl Move for ObjectKind
impl Unpin for ObjectKind
impl UnsafeUnpin 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