Registry / utility / typemap

typemap

JSON →
library0.3.3rscratesunverified

A typesafe store for many value types, allowing heterogeneous maps keyed by type.

# Cargo.toml [dependencies] typemap = "0.3.3"
INSTALL
IMPORT
SIG · TYPEMAP
T
typemap
utilityrustv0.3.3
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::TypeMap;

Store and retrieve a String value by type.

use typemap::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
breakingThe crate is unmaintained; consider using `anymap` or `type-map`.
fix
Migrate to a maintained alternative like `anymap`.
affects: >=0.3.0
Upgrade
Version history
0.3.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
typemap — cargo add typemap · libregistry