rune::alloc::hashbrown

Trait EqFn

Source
pub trait EqFn<C, T, E>
where C: ?Sized, T: ?Sized,
{ // 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, K, V, E> EqFn<C, (K, V), E> for TupleFn<T, V>
where T: EqFn<C, K, E>, C: ?Sized,

Source§

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