Trait scc::Comparable
source · pub trait Comparable<K: ?Sized>: Equivalent<K> {
// Required method
fn compare(&self, key: &K) -> Ordering;
}
Expand description
Key ordering trait.
pub trait Comparable<K: ?Sized>: Equivalent<K> {
// Required method
fn compare(&self, key: &K) -> Ordering;
}
Key ordering trait.