pub trait Equivalent<K: ?Sized> {
// Required method
fn equivalent(&self, key: &K) -> bool;
}Expand description
Generalization of Borrow that works with more types.
pub trait Equivalent<K: ?Sized> {
// Required method
fn equivalent(&self, key: &K) -> bool;
}Generalization of Borrow that works with more types.