| Crates.io | new_zealand |
| lib.rs | new_zealand |
| version | 1.0.1 |
| created_at | 2025-06-13 06:38:56.910563+00 |
| updated_at | 2025-09-22 14:53:19.336215+00 |
| description | Utilities for working with non-zero integers |
| homepage | |
| repository | https://github.com/folo-rs/folo |
| max_upload_size | |
| id | 1711131 |
| size | 14,180 |
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.