stable_hash/impls/
hash_set.rs

1use crate::prelude::*;
2use std::collections::HashSet;
3
4impl<T: StableHash, S> StableHash for HashSet<T, 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}