Struct slab_alloc::UntypedSlabAlloc
[−]
[src]
pub struct UntypedSlabAlloc<I: InitSystem, B: BackingAlloc> { /* fields omitted */ }
An untyped slab allocator.
Trait Implementations
impl<I: InitSystem, B: BackingAlloc> UntypedObjectAlloc for UntypedSlabAlloc<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