Trait slabmalloc::SlabPageProvider [] [src]

pub trait SlabPageProvider<'a> {
    fn allocate_slabpage(&mut self) -> Option<&'a mut SlabPage<'a>>;
    fn release_slabpage(&mut self, &'a mut SlabPage<'a>);
}

The memory backing as used by the SlabAllocator.

A client that wants to use the Zone/Slab allocators has to provide this interface and stick an implementation of it into every SlabAllocator.

Required Methods

fn allocate_slabpage(&mut self) -> Option<&'a mut SlabPage<'a>>

fn release_slabpage(&mut self, &'a mut SlabPage<'a>)

Implementors