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<()> { ... }
}

Required Methods

Provided Methods

Implementors