pub struct ReducedRowSpace { /* private fields */ }Expand description
A row space reduced once for repeated packed membership queries.
Implementations§
Source§impl ReducedRowSpace
impl ReducedRowSpace
Sourcepub fn from_dense_rows(rows: &[Vec<u8>], width: usize) -> Result<Self>
pub fn from_dense_rows(rows: &[Vec<u8>], width: usize) -> Result<Self>
Reduce dense binary rows with an explicit width.
An explicit width preserves the meaning of an empty matrix.
Sourcepub fn contains(&self, target: &PackedRow) -> Result<bool>
pub fn contains(&self, target: &PackedRow) -> Result<bool>
Test whether a packed row belongs to this row space.
Sourcepub fn contains_dense(&self, target: &[u8]) -> Result<bool>
pub fn contains_dense(&self, target: &[u8]) -> Result<bool>
Pack a dense target and test row-space membership.
Trait Implementations§
Source§impl Clone for ReducedRowSpace
impl Clone for ReducedRowSpace
Source§fn clone(&self) -> ReducedRowSpace
fn clone(&self) -> ReducedRowSpace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReducedRowSpace
impl RefUnwindSafe for ReducedRowSpace
impl Send for ReducedRowSpace
impl Sync for ReducedRowSpace
impl Unpin for ReducedRowSpace
impl UnsafeUnpin for ReducedRowSpace
impl UnwindSafe for ReducedRowSpace
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