Struct slab_alloc::SlabAlloc
[−]
[src]
pub struct SlabAlloc<T, I: InitSystem, B: BackingAlloc> { /* fields omitted */ }
A typed slab allocator.
Trait Implementations
impl<T, I: InitSystem, B: BackingAlloc> ObjectAlloc<T> for SlabAlloc<T, I, B>
[src]
unsafe fn alloc(&mut self) -> Result<*mut T, Exhausted>
[src]
Allocates an object of type T
. Read more
unsafe fn dealloc(&mut self, x: *mut T)
[src]
Deallocates an object previously returned by alloc
. Read more
fn oom(&mut self) -> !
[src]
Allocator-specific method for signalling an out-of-memory condition. Read more
impl<T, I: InitSystem, B: BackingAlloc> UntypedObjectAlloc for SlabAlloc<T, I, B>
[src]
fn layout(&self) -> Layout
[src]
Obtains the Layout
of allocated objects. Read more
unsafe fn alloc(&mut self) -> Result<*mut u8, Exhausted>
[src]
Allocates an object of type T
. Read more
unsafe fn dealloc(&mut self, x: *mut u8)
[src]
Deallocates an object previously returned by alloc
. Read more
fn oom(&mut self) -> !
[src]
Allocator-specific method for signalling an out-of-memory condition. Read more