Registry / utility / nonzero-ext

nonzero-ext

JSON →
library0.3.0rscratesunverified

Extensions and additional traits for non-zero integer types.

# Cargo.toml [dependencies] nonzero_ext = "0.3.0"
INSTALL
IMPORT
SIG · NONZERO-EXT
N
nonzero-ext
utilityrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NonZeroExt
use nonzero_ext::NonZeroExt;

Creates a NonZeroU32 and prints its value.

use nonzero_ext::NonZeroExt; use std::num::NonZeroU32; fn main() { let nz = NonZeroU32::new(42).unwrap(); println!("{}", nz.get()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
14
Bingbot
11
Amazon
1
Resources
nonzero-ext — cargo add nonzero-ext · libregistry