Trait hazard::Memory[][src]

pub trait Memory {
    fn allocate<T>(&self, value: T) -> *mut T;
unsafe fn deallocate<T>(&self, pointer: *mut T); }

A type that can allocate and deallocate memory.

Required Methods

Allocates memory.

Deallocates the memory associated with the supplied pointer.

Implementors