[go: up one dir, main page]

u8_with_bit

Function u8_with_bit 

Source
pub const fn u8_with_bit(b: u32, u: u8, is_set: bool) -> u8
Expand description

Replaces the b bit in u.

§Panics

  • b can’t exceed the number of bits in the type.