Skip to content

HashEq[A: (Hashable #read & Equatable[A] #read)]

[Source]

primitive val HashEq[A: (Hashable #read & Equatable[A] #read)] is
  HashFunction[A] val

Implements


Constructors

create

[Source]

new val create()
: HashEq[A] val^

Returns


Public Functions

hash

[Source]

Use the hash function from the type parameter.

fun box hash(
  x: box->A)
: USize val

Parameters

  • x: box->A

Returns


eq

[Source]

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


ne

[Source]

fun box ne(
  that: HashEq[A] val)
: Bool val

Parameters

Returns