Skip to main content

toggle_bit

Function toggle_bit 

Source
pub fn toggle_bit(byte: u8, n: u8) -> u8
Expand description

Toggle bit n in a byte, returning the modified value.