Function awint_internals::bw

source ·
pub const fn bw(w: usize) -> NonZeroUsize
Expand description

Utility free function for converting a usize to a NonZeroUsize. This is mainly intended for usage with literals, and shouldn’t be used for fallible conversions.

§Panics

If w == 0, this function will panic.