HashLaws

zio.prelude.laws.HashLaws
object HashLaws extends Lawful[Hash]

Attributes

Graph
Supertypes
trait ZLawful[Hash, Any]
class Object
trait Matchable
class Any
Self type
HashLaws.type

Members list

Value members

Inherited methods

def +[Caps1 <: (Hash), R1](that: ZLawful[Caps1, R1]): ZLawful[Caps1, R1]

Attributes

Inherited from:
ZLawful

Concrete fields

lazy val consistencyLaw: Laws[Hash]

For all values a1 and a2, if a1 is equal to a2 then the hash of a1 is equal to the hash of a2.

For all values a1 and a2, if a1 is equal to a2 then the hash of a1 is equal to the hash of a2.

Attributes

lazy val laws: Laws[Hash]

The set of all laws that instances of Hash must satisfy.

The set of all laws that instances of Hash must satisfy.

Attributes