Trait Equivalent

Source
pub trait Equivalent<K: ?Sized> {
    // Required method
    fn equivalent(&self, key: &K) -> bool;
}
Expand description

Generalization of Borrow that works with more types.

Required Methods§

Source

fn equivalent(&self, key: &K) -> bool

Implementors§

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,