Trait risinglight::array::ops::BitVecExt
source · pub trait BitVecExt {
fn and(&self, other: &Self) -> Self;
fn or(&mut self, other: &Self);
fn not_then_and(&self, other: &Self) -> Self;
fn from_bool_slice(bools: &[bool]) -> Self;
}
Expand description
Optimized operations.
Assume both bitvecs have the same length.
Required Methods§
sourcefn not_then_and(&self, other: &Self) -> Self
fn not_then_and(&self, other: &Self) -> Self
!self & other
sourcefn from_bool_slice(bools: &[bool]) -> Self
fn from_bool_slice(bools: &[bool]) -> Self
Creates a BitVec
from &[bool]
.