1 2 3 4 5 6 7 8 9 10
use std::{ collections::hash_map::DefaultHasher, hash::{Hash, Hasher}, }; pub(crate) fn hash(hashable: &impl Hash) -> u64 { let mut hasher = DefaultHasher::new(); hashable.hash(&mut hasher); hasher.finish() }