HashFunction64[A: A]¶
A pluggable hash function with 64-bit hashes.
Constructors¶
create¶
Data structures create instances internally. Use a primitive if possible.
Returns¶
- HashFunction64[A] val^
Public Functions¶
hash64¶
Calculate the hash of some type. This is an alias of the type parameter to allow data structures to hash things without consuming them.
Parameters¶
- x: box->A!
Returns¶
- U64 val
eq¶
Determine equality between two keys with the same hash. This is done with viewpoint adapted aliases to allow data structures to determine equality in a box fun without consuming keys.
Parameters¶
- x: box->A!
- y: box->A!
Returns¶
- Bool val