#[repr(C)]pub struct HeapObject {
pub tag: u8,
pub flags: u8,
pub reserved: u16,
pub refcount: u32,
}Expand description
Heap object header (8 bytes)
All heap-allocated values share this header for uniform access.
Fields§
§tag: u8Type tag identifying the payload type
flags: u8Flags (e.g., is_static for non-refcounted values)
reserved: u16Reserved for future use
refcount: u32Reference count (atomic for thread safety)
Implementations§
Auto Trait Implementations§
impl Freeze for HeapObject
impl RefUnwindSafe for HeapObject
impl Send for HeapObject
impl Sync for HeapObject
impl Unpin for HeapObject
impl UnwindSafe for HeapObject
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