Enum arret_runtime::boxed::AllocType[][src]

#[repr(u8)]
pub enum AllocType {
    Const,
    Stack,
    Heap16,
    Heap32,
    HeapForward16,
    HeapForward32,
}

Allocation type for boxed values

Variants

Const

Static constant value

Stack

Stack allocated value of unknown length

Heap16

Heap allocated 16 byte value

Heap32

Heap allocated 32 byte value

HeapForward16

Box pointing to a new 16 byte heap location

This is a temporary type used during garbage collection.

HeapForward32

Box pointing to a new 32 byte heap location

This is a temporary type used during garbage collection.

Implementations

impl AllocType[src]

pub fn to_heap_box_size(self) -> Option<BoxSize>[src]

Returns the corresponding BoxSize if this type is heap allocated

Trait Implementations

impl Clone for AllocType[src]

impl Debug for AllocType[src]

impl PartialEq<AllocType> for AllocType[src]

impl Copy for AllocType[src]

impl StructuralPartialEq for AllocType[src]

Auto Trait Implementations

impl RefUnwindSafe for AllocType

impl Send for AllocType

impl Sync for AllocType

impl Unpin for AllocType

impl UnwindSafe for AllocType

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> PartialEqInHeap for T where
    T: PartialEq<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.