depends 0.11.0

Ergonomic, performant, incremental computation between arbitrary types
Documentation
1
2
3
4
5
6
7
//! Only stabilised since Rust 1.70.0 so must implement ourselves to retain
//! MSRV.
use std::hash::{BuildHasher, Hash};

pub fn hash_one<BH: BuildHasher, T: Hash>(hash_builder: &BH, x: T) -> u64 {
    hash_builder.hash_one(&x)
}