#[repr(align(16))]pub struct B128(pub [u8; 16]);
Expand description
An array of bits
Tuple Fields§
§0: [u8; 16]
Trait Implementations§
source§impl BitArray for B128
impl BitArray for B128
source§fn get_bit(self, index: usize) -> bool
fn get_bit(self, index: usize) -> bool
Get a bit. Poor performance, used only for testing and debugging.
source§fn set_bit(&mut self, index: usize, sign: bool)
fn set_bit(&mut self, index: usize, sign: bool)
Set a bit. Poor performance, used only for testing and debugging.
fn count_ones(self) -> u32
source§fn transpose_in_place(a: &mut BitMatrix<Self, 128>)
fn transpose_in_place(a: &mut BitMatrix<Self, 128>)
Transpose a square matrix in place. This will likely be better performance than using
Transpose::transpose()
.source§impl Distribution<B128> for Standard
impl Distribution<B128> for Standard
source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> B128
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> B128
Generate a random value of
T
, using rng
as the source of randomness.source§impl PartialEq for B128
impl PartialEq for B128
impl Copy for B128
impl Eq for B128
impl StructuralEq for B128
impl StructuralPartialEq for B128
Auto Trait Implementations§
impl RefUnwindSafe for B128
impl Send for B128
impl Sync for B128
impl Unpin for B128
impl UnwindSafe for B128
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