Struct SlabAllocator
Source pub struct SlabAllocator<const BSIZE: usize, const GROW_SIZE: usize> {
head: AtomicU128,
stamp: AtomicU64,
grow_aux: SpinLock<()>,
}
Expand description
Create a new slab allocator with slab size T.
Grow the internal blocks by allocating from the physical frame.
Allocate a Block from the allocator.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
[From]<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.