← Standard library

Hashable

constraint Hashable
import Hashable from Wax;

Requires equality and a 32-bit hash. Equal values must have equal hashes. Values stored as dictionary keys or set elements must not change their hash/equality behavior while stored.

CollectionConstraints.wax:29

Members

GetHashCodemethod

public fn GetHashCode() : uint32

Returns a 32-bit hash consistent with equality. Hash collisions are allowed; equal values must share a hash.

CollectionConstraints.wax:34

Equalsmethod

public fn Equals(base other) : bool

Tests equality against a compatible value. Equal values must remain interchangeable for collection membership.

CollectionConstraints.wax:39