[][src]Struct meowhash::MeowHasher

pub struct MeowHasher { /* fields omitted */ }

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

Auto Trait Implementations

impl Send for MeowHasher

impl Sync for MeowHasher

impl Unpin for MeowHasher

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<D> Digest for D where
    D: FixedOutput + Update + Reset + Clone + Default
[src]

type OutputSize = <D as FixedOutput>::OutputSize

Output size for Digest

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.