Skip to main content

clear_bit

Function clear_bit 

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

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

flags = clear_bit(flags, 0); // clear the locked flag