pub struct ObjectData { /* private fields */ }Expand description
An object: a payload and the prototype that defines its type.
A Value::Object is an Rc pointer to ObjectData.
proto is the Module terminal that is the instance; methods
dispatched on the object run in this environment. This is also the handle
used by Value::Iota’s home.
data is a single-slot payload. Records with named fields are not yet implemented;
maps are the current idiom. Only the module’s own code can access this via
__value.
Implementations§
Source§impl ObjectData
impl ObjectData
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ObjectData
impl !Send for ObjectData
impl !Sync for ObjectData
impl !UnwindSafe for ObjectData
impl Freeze for ObjectData
impl Unpin for ObjectData
impl UnsafeUnpin for ObjectData
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