Registry / utility / fallible-collections

fallible-collections

JSON →
library0.5.1rscratesunverified

Add fallible allocation API to standard library collections.

# Cargo.toml [dependencies] fallible_collections = "0.5.1"
INSTALL
IMPORT
SIG · FALLIBLE-COLLECTIO
F
fallible-collections
utilityrustv0.5.1
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.

FallibleVec
use fallible_collections::FallibleVec;

Use try_push to handle allocation failures gracefully.

use fallible_collections::FallibleVec; let mut vec = Vec::new(); vec.try_push(42).unwrap(); println!("{:?}", vec);
Debug
Known issues
gotchaRequires nightly Rust for fallible allocation features.
fix
Use a stable Rust version with the `unstable` feature flag enabled.
affects: >=0.5.0
Upgrade
Version history
0.5.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
fallible-collections — cargo add fallible-collections · libregistry