pub trait HasherFn<C, T, E>
where C: ?Sized, T: ?Sized,
{ // Required method fn hash(&self, cx: &mut C, key: &T) -> Result<u64, E>; }
Expand description

Trait used to implement custom hash implementations which are not solely based on traits.

Required Methods§

source

fn hash(&self, cx: &mut C, key: &T) -> Result<u64, E>

Implementors§

source§

impl<T, C, K, V, E> HasherFn<C, (K, V), E> for TupleFn<T, V>
where T: HasherFn<C, K, E>, C: ?Sized,

source§

impl<U, C, T, E> HasherFn<C, T, E> for U
where U: Fn(&mut C, &T) -> Result<u64, E>, C: ?Sized, T: ?Sized,