slice_pool
pub struct SlicePool<'a, T: 'a>(_);
An interface for allocating chunks in a slice.
impl<'a, T> SlicePool<'a, T>
fn new(slice: &'a mut [T]) -> Self
Wraps a slice with a chunkable interface.
fn allocate(&mut self, size: usize) -> Option<ChunkRef<'a, T>>
Allocates a new chunk in the slice.
fn len(&self) -> usize
Returns the number of chunks in the slice.