Function kernel::bits::checked_bit_u16
source · pub fn checked_bit_u16(n: u32) -> Option<u16>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.