pub trait Contains<Q> {
type Key;
// Required method
fn contains(&self, key: &Q) -> bool
where Self::Key: Borrow<Q>;
}
Expand description
Contains
defines a common interface for types able to verify if they contain a given
key or index; the trait strives to emulate the behavior of the contains
method found in
standard collections such as HashSet
or BTreeSet
.