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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.