Spec-Zone.ru › Pony

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

[Source]

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

Implements

  • HashFunction[A] val

Constructors

create

[Source]

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

Returns

  • HashEq[A] val^

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

  • USize val

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

  • Bool val

ne

[Source]

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

Parameters

  • that: HashEq[A] val

Returns

  • Bool val

© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/collections-HashEq

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API