Trait platform_mem::RawMem
source · [−]pub trait RawMem<T> {
fn alloc(&mut self, capacity: usize) -> Result<&mut [T]>;
fn allocated(&self) -> usize;
fn occupy(&mut self, capacity: usize) -> Result<()>;
fn occupied(&self) -> usize;
fn grow(&mut self, capacity: usize) -> Result<&mut [T]> { ... }
fn shrink(&mut self, capacity: usize) -> Result<&mut [T]> { ... }
fn grow_occupied(&mut self, capacity: usize) -> Result<()> { ... }
fn shrink_occupied(&mut self, capacity: usize) -> Result<()> { ... }
}