pub(crate) fn flip_bit(self, index: usize) -> Self {
        let mut bytes = self.0;
        let (byte_index, bit_index) = (index / 8, index % 8);

        let actual_bit_index = 7 - bit_index;
        bytes[byte_index] ^= 1 << actual_bit_index;

        bytes.into()
    }
/// Flip the bit at the given index.
///
/// # Panics
///
/// Panics if index is out of bounds (>= 160)
Flip the bit at the given index.
Flip the bit at the given index .
pub(crate) fn flip_bit(self, index: usize) -> Self {
        let mut bytes = self.0;
        let (byte_index, bit_index) = (index / 8, index % 8);
        let actual_bit_index = 7 - bit_index;
        bytes[byte_index] ^= 1 << actual_bit_index;
        bytes.into()
    }
pub ( crate ) fn flip_bit ( self , index : usize ) -> Self { let mut bytes = self . 0 ; let ( byte_index , bit_index ) = ( index / 8 , index % 8 ) ; let actual_bit_index = 7 - bit_index ; bytes [ byte_index ] ^= 1 << actual_bit_index ; bytes . into ( ) }
Flip the bit at the given index.
Flip the bit at the given index .
self
index
usize
self
index
usize
panics
Panics if index is out of bounds (>= 160)
Panics if index is out of bounds ( > = 160 )