Trait lfchring::Hasher[][src]

pub trait Hasher: Default {
    fn digest(&mut self, bytes: &[u8]) -> Vec<u8>;
}

A trait to be implemented by any type that needs to act as a hash algorithm implementation.

For general information about why this is required or how to use the built-in Hasher, please refer to the crate-level documentation and the documentation of the constructor methods of the HashRing<N, H>.

Required methods

fn digest(&mut self, bytes: &[u8]) -> Vec<u8>[src]

Given a byte slice, returns a hash digest as an owned Vec of u8.

Loading content...

Implementors

Loading content...