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§fn alloc_contiguous(
&mut self,
base: Option<usize>,
size: usize,
align_log2: usize,
) -> Option<usize>
fn alloc_contiguous( &mut self, base: Option<usize>, size: usize, align_log2: usize, ) -> Option<usize>
Allocate a free block with a given size, and return the first bit position. Read more
Source§fn dealloc_contiguous(&mut self, base: usize, size: usize) -> bool
fn dealloc_contiguous(&mut self, base: usize, size: usize) -> bool
Free a contiguous block of bits. Read more
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