nonzero_ext 0.3.0

Extensions and additional traits for non-zero integer types
Documentation
1
2
3
4
5
6
7
8
#[macro_use]
extern crate nonzero_ext;

use std::num::NonZeroU32;

fn main() {
    const _MY_NON_ZERO_U32: NonZeroU32 = nonzero!((42 * 2 - 21) as u32);
}