pub struct BitMap { /* private fields */ }Implementations§
Source§impl BitMap
impl BitMap
Sourcepub fn set<B>(&mut self, i: usize, j: usize, bit: B)where
B: Into<Bit>,
pub fn set<B>(&mut self, i: usize, j: usize, bit: B)where
B: Into<Bit>,
Sets a specific bit in the bitmap
§Arguments
i- Row indexj- Column indexbit- Bit value to set (can beBit::OneorBit::Zero)
Sourcepub fn invert_bit(&mut self, i: usize, j: usize)
pub fn invert_bit(&mut self, i: usize, j: usize)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BitMap
impl RefUnwindSafe for BitMap
impl Send for BitMap
impl Sync for BitMap
impl Unpin for BitMap
impl UnwindSafe for BitMap
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