Struct meowhash::MeowHasher
source · pub struct MeowHasher { /* private fields */ }
Expand description
Meow hasher.
An implementation of the Meow hasher providing the Digest trait.
Implementations§
source§impl MeowHasher
impl MeowHasher
Trait Implementations§
source§impl Default for MeowHasher
impl Default for MeowHasher
source§impl Digest for MeowHasher
impl Digest for MeowHasher
source§fn digest(data: &[u8]) -> GenericArray<u8, Self::OutputSize>
fn digest(data: &[u8]) -> GenericArray<u8, Self::OutputSize>
Compute the hash of a chunk of data directly.
This is a little faster than using input
and result
, because it
doesn’t have to keep an intermediate buffer.
type OutputSize = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>
source§fn result(self) -> GenericArray<u8, Self::OutputSize>
fn result(self) -> GenericArray<u8, Self::OutputSize>
Retrieve result and consume hasher instance.
source§fn result_reset(&mut self) -> GenericArray<u8, Self::OutputSize>
fn result_reset(&mut self) -> GenericArray<u8, Self::OutputSize>
Retrieve result and reset hasher instance. Read more
source§fn output_size() -> usize
fn output_size() -> usize
Get output size of the hasher