Trait once_map::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,