[go: up one dir, main page]

metrohash 1.0.0

Rust implementation of MetroHash, a high quality, high performance hash algorithm
Documentation
//! A Rust implementation of the MetroHash algorithm.
//!
//! MetroHash is a high quality, high performance hash algorithm
//!
//! # Example
//!
//! ```rust
//! 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"));
//! ```

mod metrohash64;
mod metrohash128;
mod utils;

pub use metrohash64::*;
pub use metrohash128::*;

pub type MetroHash = MetroHash64;

#[cfg(test)]
mod tests;