Registry / utility / once-map

once-map

JSON →
library0.4.23rscratesunverified

Single assignment and lazy maps

# Cargo.toml [dependencies] once_map = "0.4.23"
INSTALL
IMPORT
SIG · ONCE-MAP
O
once-map
utilityrustv0.4.23
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.

OnceMap
use once_map::OnceMap;

Creates a map that allows single assignment of keys.

use once_map::OnceMap; fn main() { let mut map = OnceMap::new(); map.insert("key", 42); println!("Value: {:?}", map.get(&"key")); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.23latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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