protocol DefaultHashable<Self, H> { ... }
H: Hasher<H>

Mixin to provide a default implementation of Hashable for a type.

This mixin provides a default implementation of hash for a type. If the type is a struct, it will hash each field in order. If the type is an enum, it will hash the underlying value.

Pointers are hashed by casting them to usize and hashing the result. If a field is not hashable, the program will not compile.

See also DefaultEquatable for a similar mixin for equality comparison.

Provided methods