Struct bitmap_allocator::BitAlloc16
source · pub struct BitAlloc16(/* private fields */);
Expand description
A bitmap consisting of only 16 bits. BitAlloc16 acts as the leaf (except the leaf bits of course) nodes in the segment trees.
Trait Implementations§
source§impl BitAlloc for BitAlloc16
impl BitAlloc for BitAlloc16
source§const CAP: usize = 16usize
const CAP: usize = 16usize
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.
source§impl Default for BitAlloc16
impl Default for BitAlloc16
source§fn default() -> BitAlloc16
fn default() -> BitAlloc16
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BitAlloc16
impl RefUnwindSafe for BitAlloc16
impl Send for BitAlloc16
impl Sync for BitAlloc16
impl Unpin for BitAlloc16
impl UnwindSafe for BitAlloc16
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