new_zealand

Crates.ionew_zealand
lib.rsnew_zealand
version1.0.1
created_at2025-06-13 06:38:56.910563+00
updated_at2025-09-22 14:53:19.336215+00
descriptionUtilities for working with non-zero integers
homepage
repositoryhttps://github.com/folo-rs/folo
max_upload_size
id1711131
size14,180
Sander Saares (sandersaares)

documentation

README

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.

Commit count: 810

cargo fmt