[−][src]Trait hash_db::Hasher
Trait describing an object that can hash a slice of bytes. Used to abstract
other types over the hashing algorithm. Defines a single hash
method and an
Out
associated type with the necessary bounds.
Associated Types
type Out: AsRef<[u8]> + AsMut<[u8]> + Default + MaybeDebug + PartialEq + Eq + Hash + Send + Sync + Clone + Copy
The output type of the Hasher
type StdHasher: Sync + Send + Default + Hasher
What to use to build HashMap
s with this Hasher
.
Associated Constants
Loading content...Required methods
fn hash(x: &[u8]) -> Self::Out
Compute the hash of the provided slice of bytes returning the Out
type of the Hasher
.