Function set_bit

Source
pub fn set_bit(value: u32, bit_position: u32, bit_val: bool) -> u32
Expand description

Sets or clears a single bit at bit_position in value according to bit_val.