rune_alloc::hashbrown

Trait EqFn

Source
pub trait EqFn<C: ?Sized, T: ?Sized, E> {
    // Required method
    fn eq(&self, cx: &mut C, key: &T) -> Result<bool, E>;
}
Expand description

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

Required Methods§

Source

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

Implementors§

Source§

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

Source§

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