pub struct BitmapIndex { /* private fields */ }Expand description
A bitmap index storing up to capacity bits.
Implementations§
Source§impl BitmapIndex
impl BitmapIndex
pub fn new(capacity: usize) -> Self
pub fn set(&mut self, bit: usize)
pub fn clear_bit(&mut self, bit: usize)
pub fn get(&self, bit: usize) -> bool
pub fn count_ones(&self) -> usize
pub fn capacity(&self) -> usize
pub fn intersect(&self, other: &Self) -> Self
pub fn union(&self, other: &Self) -> Self
pub fn clear_all(&mut self)
pub fn is_empty(&self) -> bool
pub fn first_set(&self) -> Option<usize>
Trait Implementations§
Source§impl Clone for BitmapIndex
impl Clone for BitmapIndex
Source§fn clone(&self) -> BitmapIndex
fn clone(&self) -> BitmapIndex
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BitmapIndex
impl RefUnwindSafe for BitmapIndex
impl Send for BitmapIndex
impl Sync for BitmapIndex
impl Unpin for BitmapIndex
impl UnsafeUnpin for BitmapIndex
impl UnwindSafe for BitmapIndex
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