Function bit_u32

Source
pub const fn bit_u32(n: u32) -> u32
Expand description

Computes 1 << n by performing a compile-time assertion that n is in bounds.

This version is the default and should be used if n is known at compile time.