7 releases
Uses new Rust 2024
0.1.6 | Jul 3, 2025 |
---|---|
0.1.5 | Jun 27, 2025 |
#570 in Hardware support
1,100 downloads per month
Used in 11 crates
(8 directly)
12KB
79 lines
Utilities for working with non-zero integers.
Currently this implements a shorthand macro for creating non-zero integers from literals at compile time:
use std::num::NonZero;
use new_zealand::nz;
fn foo(x: NonZero<u32>) { println!("NonZero value: {x}"); }
foo(nz!(42));
More details in the package documentation.
This is part of the Folo project that provides mechanisms for high-performance hardware-aware programming in Rust.