Function kernel::bits::checked_bit_u32
source · pub fn checked_bit_u32(n: u32) -> Option<u32>Expand description
Computes 1 << n if n is in bounds, i.e.: if n is smaller than
the maximum number of bits supported by the type.
Returns None otherwise.