pub trait Comparable<K: ?Sized>: Equivalent<K> { // Required method fn compare(&self, key: &K) -> Ordering; }
Key ordering trait.
Compares self to key and returns their ordering.
self
key