pub struct Bitmap { /* private fields */ }
Implementations§
Source§impl Bitmap
impl Bitmap
pub fn new(bit_count: usize) -> Self
pub fn check_batch(&self, handles: &[Handle]) -> bool
pub fn to_indices_true(&self) -> Vec<usize>
pub fn to_indices_false(&self) -> Vec<usize>
pub fn bit_capacity(&self) -> usize
pub fn capacity(&self) -> usize
pub fn set(&mut self, bit_index: usize, value: bool)
pub fn get(&self, bit_index: usize) -> Option<bool>
pub unsafe fn set_unchecked(&mut self, bit_index: usize, value: bool)
pub unsafe fn get_unchecked(&self, bit_index: usize) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bitmap
impl RefUnwindSafe for Bitmap
impl !Send for Bitmap
impl !Sync for Bitmap
impl Unpin for Bitmap
impl UnwindSafe for Bitmap
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