Function awint_core::bw
source · pub const fn bw(w: usize) -> NonZero<usize>
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.