Enum arret_runtime::boxed::BoxSize[][src]

pub enum BoxSize {
    Size16,
    Size32,
}

Size of a boxed value in bytes

Variants

Size16

16 byte boxed value

Size32

32 byte boxed value

Implementations

impl BoxSize[src]

pub fn cell_count(self) -> usize[src]

Returns the number of 16 byte cells required by this box size

pub fn to_heap_alloc_type(self) -> AllocType[src]

Returns the corresponding AllocType if this box was allocated on the heap

Trait Implementations

impl Clone for BoxSize[src]

impl Debug for BoxSize[src]

impl PartialEq<BoxSize> for BoxSize[src]

impl Copy for BoxSize[src]

impl StructuralPartialEq for BoxSize[src]

Auto Trait Implementations

impl RefUnwindSafe for BoxSize

impl Send for BoxSize

impl Sync for BoxSize

impl Unpin for BoxSize

impl UnwindSafe for BoxSize

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.