pub type HeapAllocUninitialized<T> = HeapAlloc<T>;
👎Deprecated

Aliased Type§

struct HeapAllocUninitialized<T> {
    pub default_value: T,
}

Fields§

§default_value: T

Implementations§

source§

impl<T: Clone> HeapAlloc<T>

source

pub fn new(data: T) -> HeapAlloc<T>

Trait Implementations§

source§

impl<T: Clone> Allocator<T> for HeapAlloc<T>

§

type AllocatedMemory = WrapBox<T>

source§

fn alloc_cell(self: &mut HeapAlloc<T>, len: usize) -> WrapBox<T>

source§

fn free_cell(self: &mut HeapAlloc<T>, _data: WrapBox<T>)

source§

impl<T: Clone + Default> Default for HeapAlloc<T>

source§

fn default() -> Self

Returns the “default value” for a type. Read more