Hash

trait Hash[a: Type]Source

A trait for types that can be hashed.

Instances

instance Hash[Unit]Source
instance Hash[Bool]Source
instance Hash[Char]Source
instance Hash[Float32]Source
instance Hash[Float64]Source
instance Hash[BigDecimal]Source
instance Hash[Int8]Source
instance Hash[Int16]Source
instance Hash[Int32]Source
instance Hash[Int64]Source
instance Hash[String]Source
instance Hash[BigInt]Source
instance Hash[(a1, a2)] with Hash[a1], Hash[a2]Source
instance Hash[(a1, a2, a3)] with Hash[a1], Hash[a2], Hash[a3]Source
instance Hash[(a1, a2, a3, a4)] with Hash[a1], Hash[a2], Hash[a3], Hash[a4]Source
instance Hash[(a1, a2, a3, a4, a5)] with Hash[a1], Hash[a2], Hash[a3], Hash[a4], Hash[a5]Source
instance Hash[(a1, a2, a3, a4, a5, a6)] with Hash[a1], Hash[a2], Hash[a3], Hash[a4], Hash[a5], Hash[a6]Source
instance Hash[(a1, a2, a3, a4, a5, a6, a7)] with Hash[a1], Hash[a2], Hash[a3], Hash[a4], Hash[a5], Hash[a6], Hash[a7]Source
instance Hash[(a1, a2, a3, a4, a5, a6, a7, a8)] with Hash[a1], Hash[a2], Hash[a3], Hash[a4], Hash[a5], Hash[a6], Hash[a7], Hash[a8]Source
instance Hash[(a1, a2, a3, a4, a5, a6, a7, a8, a9)] with Hash[a1], Hash[a2], Hash[a3], Hash[a4], Hash[a5], Hash[a6], Hash[a7], Hash[a8], Hash[a9]Source
instance Hash[(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)] with Hash[a1], Hash[a2], Hash[a3], Hash[a4], Hash[a5], Hash[a6], Hash[a7], Hash[a8], Hash[a9], Hash[a10]Source
instance Hash[IOError]Source
instance Hash[Identity[a]] with Hash[a]Source
instance Hash[List[a]] with Hash[a]Source
instance Hash[Map[k, v]] with Hash[k], Hash[v]Source
instance Hash[MultiMap[k, v]] with Hash[k], Hash[v]Source
instance Hash[Nec[a]] with Hash[a]Source
instance Hash[Nel[a]] with Hash[a]Source
instance Hash[Option[a]] with Hash[a]Source
instance Hash[Result[e, t]] with Hash[e], Hash[t]Source
instance Hash[Set[a]] with Hash[a]Source
instance Hash[Validation[e, t]] with Hash[e], Hash[t]Source
instance Hash[Vector[a]] with Hash[a]Source

Signatures

def hash(x: a): Int32 with Hash[a] Source

Returns a hash value for the given x.

Module Definitions

def combine(h1: Int32, h2: Int32): Int32 Source

Combines the two given hash values.

def magic(): Int32 Source

Returns a number used for combining hash values.