[][src]Trait slabmalloc::PageProvider

pub trait PageProvider<'a>: Send {
    fn allocate_page(&mut self) -> Option<&'a mut ObjectPage<'a>>;
fn release_page(&mut self, _: &'a mut ObjectPage<'a>); }

The memory backing as used by the SCAllocator.

A client that wants to use the zone or size class allocators has to provide this interface and stick an implementation of it into every SCAllocator.

Required methods

fn allocate_page(&mut self) -> Option<&'a mut ObjectPage<'a>>

fn release_page(&mut self, _: &'a mut ObjectPage<'a>)

Loading content...

Implementors

Loading content...