Registry / utility / type-map

type-map

JSON →
library0.5.1rscratesunverified

Provides a typemap container using FxHashMap for storing values by type.

# Cargo.toml [dependencies] type-map = "0.5.1"
INSTALL
IMPORT
SIG · TYPE-MAP
T
type-map
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.

TypeMap
use type_map::TypeMap;

Stores and retrieves a value by its type using a TypeMap.

use type_map::TypeMap; fn main() { let mut map = TypeMap::new(); map.insert(42i32); if let Some(val) = map.get::<i32>() { println!("Value: {}", val); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
type-map — cargo add type-map · libregistry