#[repr(C)]pub struct Object {
pub shape: *mut Shape,
pub slots: *mut Value,
pub _1: *mut c_void,
}
Expand description
This layout is shared by all native objects. For non-native objects, the shape may always be accessed safely, and other members may be as well, depending on the object’s specific layout.
Fields§
§shape: *mut Shape
§slots: *mut Value
§_1: *mut c_void
Trait Implementations§
source§impl PartialEq<Object> for Object
impl PartialEq<Object> for Object
impl Copy for Object
impl StructuralPartialEq for Object
Auto Trait Implementations§
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