pub struct Object { /* private fields */ }
Expand description
Objects in JavaScript may be defined as an unordered collection of related data, of primitive or reference types, in the form of “key: value” pairs.
Objects can be initialized using new Object()
, Object.create()
, or using the literal
notation.
An object initializer is an expression that describes the initialization of an
Object
. Objects consist of properties, which are used to describe an object.
Values of object properties can either contain primitive
data types or other
objects.
More information:
Implementations§
Source§impl Object
impl Object
pub fn properties(&self) -> &[PropertyDefinition]
Trait Implementations§
Source§impl Executable for Object
impl Executable for Object
Source§impl Trace for Object
impl Trace for Object
Source§fn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects
impl StructuralPartialEq for Object
Auto Trait Implementations§
impl Freeze for Object
impl RefUnwindSafe for Object
impl !Send for Object
impl !Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
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