alloc_stdlib::heap_alloc

Type Alias HeapAllocUninitialized

Source
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>

Source§

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