toggle_bit

Function toggle_bit 

Source
pub fn toggle_bit(bitmap: &mut [u8], bit_index: usize)
Expand description

Flip a bit’s value 0->1 or 1->0 at the given index