Registry / utility / typemap-rev

typemap-rev

JSON →
library0.4.0rscratesunverified

A hashmap that stores types as keys, allowing type-safe heterogeneous mappings.

# Cargo.toml [dependencies] typemap_rev = "0.4.0"
INSTALL
IMPORT
SIG · TYPEMAP-REV
T
typemap-rev
utilityrustv0.4.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.

TypeMap
use typemap_rev::TypeMap;

Insert and retrieve values by their type.

use typemap_rev::TypeMap; fn main() { let mut map = TypeMap::new(); map.insert::<String>("hello".to_string()); if let Some(val) = map.get::<String>() { println!("{}", val); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
typemap-rev — cargo add typemap-rev · libregistry