Crate metrohash [] [src]

A Rust implementation of the MetroHash algorithm.

MetroHash is a high quality, high performance hash algorithm

Example

use std::collections::HashMap;
use std::hash::BuildHasherDefault;
use metrohash::MetroHash;

let mut hash: HashMap<_, _, BuildHasherDefault<MetroHash>> = Default::default();
hash.insert(1000, "1000");
assert_eq!(hash.get(&1000), Some(&"1000"));

Structs

MetroHash128
MetroHash64

Type Definitions

MetroHash