return to top
source
An opaque (low-level) hash operation used to implement hashing for pointers.
The BEq α and Hashable α instances on α are compatible. This means that that a == b implies hash a = hash b.
BEq α
Hashable α
α
a == b
hash a = hash b
This is automatic if the BEq instance is lawful.
BEq
If a == b, then hash a = hash b.
A lawful hash function respects its Boolean equality test.