pub trait KeyComparable {
    type Key: PartialEq<Self::Key> + ?Sized;

    fn key(&self) -> &Self::Key;
}
Expand description

A trait for comparing types only by a certain key.

Required Associated Types

Key type for comparisons.

Required Methods

Returns a reference to the key.

Implementors