pub enum HeapObject {
Show 14 variants
Closure(ClosureData),
Constructor(ConstructorData),
Array(ArrayData),
StringObj(StringData),
BigNat(BigNatData),
BigInt(BigIntData),
Thunk(ThunkData),
IoAction(IoActionData),
Task(TaskData),
External(ExternalData),
Pap(PapData),
MutRec(MutRecData),
BoxedFloat(BoxedFloatData),
ByteArray(ByteArrayData),
}Expand description
A heap-allocated runtime object.
Variants§
Closure(ClosureData)
A closure with captured environment.
Constructor(ConstructorData)
A constructor with fields.
Array(ArrayData)
An array of runtime objects.
StringObj(StringData)
A string value.
BigNat(BigNatData)
A big natural number.
BigInt(BigIntData)
A big integer.
Thunk(ThunkData)
A thunk (lazy value).
IoAction(IoActionData)
An IO action.
Task(TaskData)
A task (concurrent computation).
External(ExternalData)
An external/opaque value.
Pap(PapData)
A partial application.
MutRec(MutRecData)
A mutual recursive closure group.
BoxedFloat(BoxedFloatData)
A boxed float.
ByteArray(ByteArrayData)
A byte array.
Implementations§
Source§impl HeapObject
impl HeapObject
Sourcepub fn header(&self) -> &ObjectHeader
pub fn header(&self) -> &ObjectHeader
Get the object header.
Sourcepub fn header_mut(&mut self) -> &mut ObjectHeader
pub fn header_mut(&mut self) -> &mut ObjectHeader
Get the mutable object header.
Trait Implementations§
Source§impl Clone for HeapObject
impl Clone for HeapObject
Source§fn clone(&self) -> HeapObject
fn clone(&self) -> HeapObject
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 HeapObject
impl RefUnwindSafe for HeapObject
impl Send for HeapObject
impl Sync for HeapObject
impl Unpin for HeapObject
impl UnsafeUnpin 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