pub enum SparseMask {
Empty,
Single {
word_index: usize,
mask: u64,
},
Multi {
indices: Vec<usize>,
masks: Vec<u64>,
},
}Expand description
Sparse enablement mask: precomputed for efficient bitmap checks.
Variants§
Empty
No bits set (e.g. no inputs / no inhibitors).
Single
Exactly one non-zero word at the given index.
Multi
Multiple non-zero words (sparse representation).
Trait Implementations§
Source§impl Clone for SparseMask
impl Clone for SparseMask
Source§fn clone(&self) -> SparseMask
fn clone(&self) -> SparseMask
Returns a duplicate of the value. Read more
1.0.0 · 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 SparseMask
impl RefUnwindSafe for SparseMask
impl Send for SparseMask
impl Sync for SparseMask
impl Unpin for SparseMask
impl UnsafeUnpin for SparseMask
impl UnwindSafe for SparseMask
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