pub trait VaryHasher<R>: Clone {
    const MOD: usize;

    // Required methods
    fn new(init: usize) -> Self;
    fn finish(&self) -> R;
    fn write_u8(&mut self, i: u8);
    fn write_u16(&mut self, i: u16);
    fn write(&mut self, bytes: &[u8]);
}

Required Associated Constants§

Required Methods§

source

fn new(init: usize) -> Self

source

fn finish(&self) -> R

source

fn write_u8(&mut self, i: u8)

source

fn write_u16(&mut self, i: u16)

source

fn write(&mut self, bytes: &[u8])

Implementors§

source§

impl<const MOD: usize> VaryHasher<u8> for Pearson<MOD>

source§

const MOD: usize = MOD

source§

impl<const MOD: usize> VaryHasher<u16> for MyDefaultHasher<MOD>

source§

const MOD: usize = MOD