Trait std::hash::HasherUnstable [-]  [+] [src]

pub trait Hasher {
    type Output;
    fn reset(&mut self);
    fn finish(&self) -> <Self as Hasher>::Output;
}

A trait which represents the ability to hash an arbitrary stream of bytes.

Required Methods

type Output

fn reset(&mut self)

Resets this hasher back to its initial state (as if it were just created).

fn finish(&self) -> <Self as Hasher>::Output

Completes a round of hashing, producing the output hash generated.

Implementors