pub struct BitArray { /* private fields */ }Implementations§
Source§impl BitArray
impl BitArray
pub fn zeros(len: usize) -> Self
pub fn ones(len: usize) -> Self
pub fn copy_from(&mut self, other: &Self)
pub fn reset(&mut self)
pub fn negate(&mut self, index: usize)
pub fn set_bool(&mut self, index: usize, val: bool)
pub fn get_masked(&self, index: usize) -> u32
pub fn get_bool(&self, index: usize) -> bool
pub fn xor_all(&mut self, other: &Self)
pub fn len(&self) -> usize
pub fn true_indices(&self) -> TIndices<'_>
Trait Implementations§
Source§impl Measured for BitArray
impl Measured for BitArray
type Slot = u32
fn get(&self, n: u32) -> bool
fn get_range_u8(&self, start: usize, stop: usize) -> u8
fn get_range_u16(&self, start: usize, stop: usize) -> u16
fn get_range_u32(&self, start: usize, stop: usize) -> u32
fn get_range_u64(&self, start: usize, stop: usize) -> u64
Auto Trait Implementations§
impl Freeze for BitArray
impl RefUnwindSafe for BitArray
impl Send for BitArray
impl Sync for BitArray
impl Unpin for BitArray
impl UnwindSafe for BitArray
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