Lyricdev
GitHub

interface Hashable

pub interface Hashable :: [Equatable]

Conforms to Equatable.

A value that can be hashed, as a Map key and a Set element must be.

The value's parts are written into a Hasher, in an order of the type's. Equal values must write the same; nothing checks it.

Methods

fn hash<H :: [Hasher]>(&h: H): void

Writes this value's parts into h.

Synthesized as the fields in declaration order; for an enum, its variant's position, then the payload.