Function bitfrob::u128_get_bit
source · pub const fn u128_get_bit(b: u32, u: u128) -> boolExpand description
Determines if the b bit is set in u.
Panics
bcan’t exceed the number of bits in the type.
assert_eq!(u128_get_bit(0, 0b0000_1110_u128), false);
assert_eq!(u128_get_bit(1, 0b0000_1110_u128), true);