[−][src]Struct meowhash::MeowHasher
Meow hasher.
An implementation of the Meow hasher providing the Digest trait.
Implementations
impl MeowHasher
[src]
pub fn hash_with_seed(seed: MeowHash, data: &[u8]) -> MeowHash
[src]
Compute the hash of a chunk of data using the provided seed.
pub fn hash(data: &[u8]) -> MeowHash
[src]
Compute the hash of a chunk of data.
pub fn with_seed(seed: MeowHash) -> Self
[src]
Create a new hasher instance with the provided seed.
pub fn finalise(&mut self) -> MeowHash
[src]
Produce a hash from the input data.
pub fn digest_with_seed(seed: MeowHash, bytes: &[u8]) -> GenericArray<u8, U128>
[src]
Compute the hash of a chunk of data using the provided seed.
This returns a GenericArray<u8, U128>
instead of a MeowHash
, and
mirrors Digest::digest()
.
Trait Implementations
impl Digest for MeowHasher
[src]
type OutputSize = U128
Output size for Digest
fn new() -> Self
[src]
fn update(&mut self, bytes: impl AsRef<[u8]>)
[src]
fn chain(self, bytes: impl AsRef<[u8]>) -> Self
[src]
fn finalize(self) -> GenericArray<u8, Self::OutputSize>
[src]
fn finalize_reset(&mut self) -> GenericArray<u8, Self::OutputSize>
[src]
fn reset(&mut self)
[src]
fn output_size() -> usize
[src]
fn digest(bytes: &[u8]) -> GenericArray<u8, Self::OutputSize>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<D> Digest for D where
D: FixedOutput + Update + Reset + Clone + Default,
[src]
D: FixedOutput + Update + Reset + Clone + Default,
type OutputSize = <D as FixedOutput>::OutputSize
Output size for Digest
fn new() -> D
[src]
fn update(&mut self, data: impl AsRef<[u8]>)
[src]
fn chain(self, data: impl AsRef<[u8]>) -> D
[src]
fn finalize(self) -> GenericArray<u8, <D as Digest>::OutputSize>
[src]
fn finalize_reset(&mut self) -> GenericArray<u8, <D as Digest>::OutputSize>
[src]
fn reset(&mut self)
[src]
fn output_size() -> usize
[src]
fn digest(data: &[u8]) -> GenericArray<u8, <D as Digest>::OutputSize>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,