pub struct PackedRow { /* private fields */ }Expand description
A binary row represented internally by packed machine words.
Implementations§
Source§impl PackedRow
impl PackedRow
Sourcepub fn from_dense(row: &[u8]) -> Result<Self>
pub fn from_dense(row: &[u8]) -> Result<Self>
Pack one dense binary row.
Sourcepub fn bit(&self, index: usize) -> Result<u8>
pub fn bit(&self, index: usize) -> Result<u8>
Read one logical bit, rejecting an out-of-range index.
Sourcepub fn xor_assign(&mut self, rhs: &Self) -> Result<()>
pub fn xor_assign(&mut self, rhs: &Self) -> Result<()>
XOR another row into this row.
Sourcepub fn dot_parity(&self, rhs: &Self) -> Result<u8>
pub fn dot_parity(&self, rhs: &Self) -> Result<u8>
Return the GF(2) dot product.
Trait Implementations§
impl Eq for PackedRow
impl StructuralPartialEq for PackedRow
Auto Trait Implementations§
impl Freeze for PackedRow
impl RefUnwindSafe for PackedRow
impl Send for PackedRow
impl Sync for PackedRow
impl Unpin for PackedRow
impl UnsafeUnpin for PackedRow
impl UnwindSafe for PackedRow
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