Trait SoftAlloc

Source
pub trait SoftAlloc {
    // Required methods
    fn match_generation(&self, index: &GenerationalIndex) -> bool;
    fn allocate(&mut self, vec_len: usize) -> GenerationalIndex;
    fn deallocate(&mut self, index: &GenerationalIndex) -> Result<(), Error>;
}

Required Methods§

Source

fn match_generation(&self, index: &GenerationalIndex) -> bool

Source

fn allocate(&mut self, vec_len: usize) -> GenerationalIndex

Source

fn deallocate(&mut self, index: &GenerationalIndex) -> Result<(), Error>

Implementors§