Skip to main content

set_bit

Function set_bit 

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

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

flags = set_bit(flags, 0); // set the locked flag