about summary refs log tree commit diff
path: root/src/libstd/hash_old.rs
AgeCommit message (Collapse)AuthorLines
2014-02-24Transition to new `Hash`, removing IterBytes and std::to_bytes.Huon Wilson-510/+0
2014-02-21std: rewrite Hash to make it more genericErick Tryzelaar-0/+510
This patch merges IterBytes and Hash traits, which clears up the confusion of using `#[deriving(IterBytes)]` to support hashing. Instead, it now is much easier to use the new `#[deriving(Hash)]` for making a type hashable with a stream hash. Furthermore, it supports custom non-stream-based hashers, such as if a value's hash was cached in a database. This does not yet replace the old IterBytes-hash with this new version.