Struct ami::HeapMem [] [src]

#[repr(C)]
pub struct HeapMem<T>(_);

Memory on the heap - managed by Rust.

Methods

impl<T> HeapMem<T>
[src]

[src]

Reserve size bytes of memory and return it's address (a pointer).

[src]

Allocates memory on the heap and then places x into it. Doesn't actually allocate if T is zero-sized.

[src]

Resize memory at Equivalent to a call to realloc()

[src]

Convert HeapMem to *const T.

[src]

Convert HeapMem to *mut _.

[src]

Convert HeapMem to &mut [T].

Trait Implementations

impl<T> Drop for HeapMem<T>
[src]

[src]

Executes the destructor for this type. Read more

impl<T> Deref for HeapMem<T>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<T> DerefMut for HeapMem<T>
[src]

[src]

Mutably dereferences the value.