pub unsafe trait TrustedHashEq: Hash + Eq { }
Expand description

A marker trait asserting that a type has a deterministic Hash and Eq implementation.

This trait is implemented for all standard library types which have deterministic Hash and Eq implementations.

Safety

A deterministic Hash implementation guarantees that if a value is held constant, then the hash of the value will also remain constant if the initial state of the provided hasher is also held constant, and the hasher is itself deterministic.

A deterministic Eq implementation guarantees that if a value is held constant, then the result of comparing it to another constant will not change.

Implementations on Foreign Types

Implementors