Function bitfrob::u64_with_bit

source ·
pub const fn u64_with_bit(b: u32, u: u64, is_set: bool) -> u64
Expand description

Replaces the b bit in u.

Panics

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