Struct alloc_no_stdlib::HeapAlloc [] [src]

pub struct HeapAlloc<T: Clone> {
    pub default_value: T,
}

Fields

default_value: T

Methods

impl<T: Clone> HeapAlloc<T>
[src]

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

Trait Implementations

impl<T: Clone> Allocator<T> for HeapAlloc<T>
[src]

type AllocatedMemory = WrapBox<T>

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

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