pub struct ObjectHeader {
pub rc_count: u32,
pub type_tag: TypeTag,
pub flags: ObjectFlags,
pub size_words: u16,
}Expand description
Header placed at the beginning of every heap-allocated object.
Layout:
rc_count(u32): reference counttype_tag(TypeTag): which kind of heap objectflags(ObjectFlags): status flagssize(u16): total object size in 8-byte words (max 512 KB)
Fields§
§rc_count: u32Reference count.
type_tag: TypeTagType tag for the heap object.
flags: ObjectFlagsObject flags.
size_words: u16Size of the object in 8-byte words.
Implementations§
Source§impl ObjectHeader
impl ObjectHeader
Trait Implementations§
Source§impl Clone for ObjectHeader
impl Clone for ObjectHeader
Source§fn clone(&self) -> ObjectHeader
fn clone(&self) -> ObjectHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ObjectHeader
impl RefUnwindSafe for ObjectHeader
impl Send for ObjectHeader
impl Sync for ObjectHeader
impl Unpin for ObjectHeader
impl UnsafeUnpin for ObjectHeader
impl UnwindSafe for ObjectHeader
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