stable_hash/impls/
hash_map.rs

1use crate::prelude::*;
2use std::collections::HashMap;
3
4impl<K: StableHash, V: StableHash, S> StableHash for HashMap<K, V, S> {
5    fn stable_hash<H: StableHasher>(&self, field_address: H::Addr, state: &mut H) {
6        profile_method!(stable_hash);
7
8        super::unordered_unique_stable_hash(self.iter(), field_address, state)
9    }
10}