pub struct MaskValues { /* private fields */ }Expand description
Represents the values of a Mask that contains some true and some false elements.
Implementations§
Source§impl MaskValues
impl MaskValues
Sourcepub fn true_count(&self) -> usize
pub fn true_count(&self) -> usize
Returns the true count of the mask.
Sourcepub fn boolean_buffer(&self) -> &BooleanBuffer
pub fn boolean_buffer(&self) -> &BooleanBuffer
Returns the boolean buffer representation of the mask.
Sourcepub fn indices(&self) -> &[usize]
pub fn indices(&self) -> &[usize]
Constructs an indices vector from one of the other representations.
Sourcepub fn slices(&self) -> &[(usize, usize)]
pub fn slices(&self) -> &[(usize, usize)]
Constructs a slices vector from one of the other representations.
Sourcepub fn threshold_iter(&self, threshold: f64) -> MaskIter<'_>
pub fn threshold_iter(&self, threshold: f64) -> MaskIter<'_>
Return an iterator over either indices or slices of the mask based on a density threshold.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MaskValues
impl RefUnwindSafe for MaskValues
impl Send for MaskValues
impl Sync for MaskValues
impl Unpin for MaskValues
impl UnwindSafe for MaskValues
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> 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