conduit-rust/conduit — pull request #3 by reem (2014-08-16 20:05:10+00:00)
Title: Replace HashMap<&'static str, Box<Any>> with TypeMap.

TypeMap is a thin wrapper around `HashMap>` and is meant
to be a key-value store for up to one value of each type. It enables type-safe
extensions to Request and provides a much friendlier interface than the map
it is replacing, which called on users to do runtime downcasting.

@wycats If you want to make this slightly faster we can depend on
https://github.com/reem/rust-unsafe-any, but I think the real speed boost
comes from implementing a specific hasher for TypeId.