HashIs[A: A]
primitive val HashIs[A: A] is HashFunction[A] val, HashFunction64[A] val
Implements
- HashFunction[A] val
- HashFunction64[A] val
Constructors
create
new val create() : HashIs[A] val^
Returns
- HashIs[A] val^
Public Functions
hash
Hash the identity rather than the contents.
fun box hash( x: box->A!) : USize val
Parameters
- x: box->A!
Returns
- USize val
hash64
Hash the identity rather than the contents.
fun box hash64( x: box->A!) : U64 val
Parameters
- x: box->A!
Returns
- U64 val
eq
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
- Bool val
ne
fun box ne( that: HashIs[A] val) : Bool val
Parameters
- that: HashIs[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-HashIs