Struct bitmap_allocator::BitAllocCascade16
source · pub struct BitAllocCascade16<T: BitAlloc> { /* private fields */ }
Expand description
Implement the bit allocator by segment tree algorithm.
Trait Implementations§
source§impl<T: BitAlloc> BitAlloc for BitAllocCascade16<T>
impl<T: BitAlloc> BitAlloc for BitAllocCascade16<T>
source§const CAP: usize = _
const CAP: usize = _
The bitmap has a total of CAP bits, numbered from 0 to CAP-1 inclusively.
source§fn alloc_contiguous(&mut self, size: usize, align_log2: usize) -> Option<usize>
fn alloc_contiguous(&mut self, size: usize, align_log2: usize) -> Option<usize>
Allocate a free block with a given size, and return the first bit position.
Auto Trait Implementations§
impl<T> Freeze for BitAllocCascade16<T>where
T: Freeze,
impl<T> RefUnwindSafe for BitAllocCascade16<T>where
T: RefUnwindSafe,
impl<T> Send for BitAllocCascade16<T>where
T: Send,
impl<T> Sync for BitAllocCascade16<T>where
T: Sync,
impl<T> Unpin for BitAllocCascade16<T>where
T: Unpin,
impl<T> UnwindSafe for BitAllocCascade16<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more