Registry / utility / anymap

anymap

JSON →
library0.12.1rscratesunverified

A safe and convenient store for one value of each type.

# Cargo.toml [dependencies] anymap = "0.12.1"
INSTALL
IMPORT
SIG · ANYMAP
A
anymap
utilityrustv0.12.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.

Map
use anymap::Map;

Stores and retrieves values by their type.

use anymap::Map; fn main() { let mut map = Map::new(); map.insert(42i32); map.insert("hello"); if let Some(&num) = map.get::<i32>() { println!("{}", num); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.12.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
20
OpenAI (training)
2
Meta
1
Amazon
1
Resources
anymap — cargo add anymap · libregistry