pub struct DenseMask { /* private fields */ }Expand description
Dense bitmask for row selection
Implementations§
Source§impl DenseMask
impl DenseMask
Sourcepub fn set(&mut self, index: usize, value: bool)
pub fn set(&mut self, index: usize, value: bool)
Set a bit at the given index (requires mutable Arc)
Sourcepub fn count_ones(&self) -> u64
pub fn count_ones(&self) -> u64
Count the number of set bits
Sourcepub fn and_inplace(&mut self, other: &DenseMask)
pub fn and_inplace(&mut self, other: &DenseMask)
In-place AND with another mask
Sourcepub fn or_inplace(&mut self, other: &DenseMask)
pub fn or_inplace(&mut self, other: &DenseMask)
In-place OR with another mask
Sourcepub fn not_inplace(&mut self, used_rows: Range<u32>)
pub fn not_inplace(&mut self, used_rows: Range<u32>)
In-place NOT within used rows range
Sourcepub fn from_indices(indices: &[u32], len: usize) -> Self
pub fn from_indices(indices: &[u32], len: usize) -> Self
Create from a slice of row indices
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DenseMask
impl RefUnwindSafe for DenseMask
impl Send for DenseMask
impl Sync for DenseMask
impl Unpin for DenseMask
impl UnwindSafe for DenseMask
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more