Expand description
Hashing and equality traits for keys.
A hash here yields a usize directly, matching a hash functor that returns a
machine word. This lets an identity hash place a key in a known bucket, which
the collision and precalculated-hash tests rely on.
StdHash is the default. It feeds the key to a core::hash::Hasher built
by a core::hash::BuildHasher and truncates the 64-bit result to usize.
Structs§
- FnHash
- Adapt a plain closure
Fn(&Q) -> usizeinto aHashKey. - StdEq
- Equality by the standard
PartialEqrelation. - StdHash
- A hasher built on the standard
BuildHashermachinery.