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

pub trait Hasher {
    type Output;

    fn reset(&mut self);
    fn finish(&self) -> Output;
}

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

Associated Types

type Output

Result type of one run of hashing generated by this hasher.

Required Methods

fn reset(&mut self)

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

fn finish(&self) -> Output

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

Implementors