Enum arret_runtime::boxed::AllocType [−][src]
#[repr(u8)]
pub enum AllocType {
Const,
Stack,
Heap16,
Heap32,
HeapForward16,
HeapForward32,
}Allocation type for boxed values
Variants
Static constant value
Stack allocated value of unknown length
Heap allocated 16 byte value
Heap allocated 32 byte value
Box pointing to a new 16 byte heap location
This is a temporary type used during garbage collection.
Box pointing to a new 32 byte heap location
This is a temporary type used during garbage collection.
Implementations
impl AllocType[src]
impl AllocType[src]pub fn to_heap_box_size(self) -> Option<BoxSize>[src]
Returns the corresponding BoxSize if this type is heap allocated