Struct ami::HeapData
[−]
[src]
pub struct HeapData<T>(_, _);
A safe wrapper around a T
pointer.
Methods
impl<T> HeapData<T>
[src]
fn new(size: usize) -> HeapData<T>
Allocate space for size
elements on the heap. The memory is
automatically free'd.
fn from(x: T) -> HeapData<T>
Allocates memory on the heap and then places x
into it.
Doesn't actually allocate if T
is zero-sized.
Trait Implementations
impl<T> Deref for HeapData<T>
[src]
type Target = T
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value