Skip to content

HashIs[A: A]

[Source]

primitive val HashIs[A: A] is
  HashFunction[A] val,
  HashFunction64[A] val

Implements


Constructors

create

[Source]

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

Returns


Public Functions

hash

[Source]

Hash the identity rather than the contents.

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

Parameters

  • x: box->A!

Returns


hash64

[Source]

Hash the identity rather than the contents.

fun box hash64(
  x: box->A!)
: U64 val

Parameters

  • x: box->A!

Returns


eq

[Source]

Determine equality by identity rather than structurally.

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: HashIs[A] val)
: Bool val

Parameters

Returns