pub struct Mask {
pub words: Vec<u64>,
}Fields§
§words: Vec<u64>Implementations§
Source§impl Mask
impl Mask
pub fn zero(words: usize) -> Self
pub fn all(shots: usize) -> Self
pub fn xor_assign(&mut self, other: &Mask)
pub fn or_assign(&mut self, other: &Mask)
pub fn and_assign(&mut self, other: &Mask)
pub fn bit_count(&self) -> usize
pub fn and_count(&self, other: &Mask) -> usize
pub fn is_zero(&self) -> bool
pub fn clear_unused(&mut self, shots: usize)
Trait Implementations§
impl Eq for Mask
impl StructuralPartialEq for Mask
Auto Trait Implementations§
impl Freeze for Mask
impl RefUnwindSafe for Mask
impl Send for Mask
impl Sync for Mask
impl Unpin for Mask
impl UnsafeUnpin for Mask
impl UnwindSafe for Mask
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