pub fn set_bit(data: &mut [u8], i: usize, value: bool)
Expand description

Sets bit at position i in data

Panics

panics if i >= data.len() / 8