Registry / utility / nonempty

nonempty

JSON →
library0.12.0rscratesunverified

Correct by construction non-empty vector ensuring at least one element.

# Cargo.toml [dependencies] nonempty = "0.12.0"
INSTALL
IMPORT
SIG · NONEMPTY
N
nonempty
utilityrustv0.12.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.

NonEmpty
use nonempty::NonEmpty;

Creates a non-empty vector with a single element.

use nonempty::NonEmpty; fn main() { let v = NonEmpty::new(1); println!("First: {}", v.first); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.12.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
nonempty — cargo add nonempty · libregistry