nonzero_ext 0.3.0

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

use std::num::NonZeroU8;

#[cfg_attr(rustfmt, rustfmt_skip)]
fn main() {
    let _a: NonZeroU8 = nonzero!(0u8);
}