Hash
Defined in hash@1.0.0
Provides
- Hash trait, which converts a value to a hash.
- type HashKey = Hash + Eq trait alias.
- Hashing for basic types.
Values
namespace Hash
combine_hash
Type: Std::U64 -> Std::U64 -> Std::U64
Combines two hashes.
Using method described in https://stackoverflow.com/questions/5889238/why-is-xor-the-default-way-to-combine-hashes.
namespace Hash::Hash
hash
Type: [a : Hash::Hash] a -> Std::U64
Trait member of Hash::Hash
Types and aliases
Traits and aliases
namespace Hash
trait a : Hash
Hashable types.
method hash
Type: a -> Std::U64
trait HashKey = Hash::Hash + Std::Eq
Kind: *
Hashable and comparable types.
Type implementing HashKey can be keys in a hash table.