cxx/
hash.rs

1
2
3
4
5
6
use core::hash::{BuildHasher as _, Hash};

#[doc(hidden)]
pub fn hash<V: Hash>(value: &V) -> usize {
    foldhash::quality::FixedState::default().hash_one(value) as usize
}