struct SimpleBitArray<const N: usize> {
inner: [usize; N],
}
Expand description
Simple packed bit array implementation
This could use the bitvec
crate if we cared to depend on it, but the
functionality we need is so tiny let’s keep this simple.
Fields§
§inner: [usize; N]
Array of words to use as a bit vector, in LSB-first order
Implementations§
Trait Implementations§
Source§impl<const N: usize> Clone for SimpleBitArray<N>
impl<const N: usize> Clone for SimpleBitArray<N>
Source§fn clone(&self) -> SimpleBitArray<N>
fn clone(&self) -> SimpleBitArray<N>
Returns a copy 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 moreSource§impl<const N: usize> Debug for SimpleBitArray<N>
impl<const N: usize> Debug for SimpleBitArray<N>
Source§impl<const N: usize> Default for SimpleBitArray<N>
impl<const N: usize> Default for SimpleBitArray<N>
Source§impl<const N: usize> PartialEq for SimpleBitArray<N>
impl<const N: usize> PartialEq for SimpleBitArray<N>
impl<const N: usize> Eq for SimpleBitArray<N>
impl<const N: usize> StructuralPartialEq for SimpleBitArray<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for SimpleBitArray<N>
impl<const N: usize> RefUnwindSafe for SimpleBitArray<N>
impl<const N: usize> Send for SimpleBitArray<N>
impl<const N: usize> Sync for SimpleBitArray<N>
impl<const N: usize> Unpin for SimpleBitArray<N>
impl<const N: usize> UnwindSafe for SimpleBitArray<N>
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