Trait Comparable
trait Comparable<K: ?Sized>: Equivalent<K>
Key ordering trait.
This trait allows ordered map lookup to be customized. It has one blanket
implementation that uses the regular solution with Borrow and Ord, just
like BTreeMap does, so that you can pass &str to lookup into a map with
String keys and so on.
Required Methods
fn compare(self: &Self, key: &K) -> OrderingCompare self to
keyand return their ordering.
Implementors
impl<Q, K> Comparable for Q