HashEq [Src] [A: (Hashable #read & Equatable[A] #read)]
primitive val HashEq[A: (Hashable #read & Equatable[A] #read)] is
HashFunction[A] val
Implements
- HashFunction[A] val
Constructors
create [Src]
new val create()
: HashEq[A] val^
Returns
- HashEq[A] val^
Public Functions
hash [Src]
Use the hash function from the type parameter.
fun box hash(
x: box->A)
: U64 val
Parameters
- x: box->A
Returns
- U64 val
eq [Src]
Use the structural equality function from the type parameter.
fun box eq(
x: box->A,
y: box->A)
: Bool val
Parameters
- x: box->A
- y: box->A
Returns
- Bool val
ne [Src]
fun box ne(
that: HashEq[A] val)
: Bool val
Parameters
- that: HashEq[A] val
Returns
- Bool val