pub trait KeyExtractor<'a, T> {
type Key: Hash;
// Required method
fn extract(&self, from: &'a T) -> Self::Key;
}Expand description
Extracts the key from the value, allowing KeyedSet to obtain its values’ keys.
pub trait KeyExtractor<'a, T> {
type Key: Hash;
// Required method
fn extract(&self, from: &'a T) -> Self::Key;
}Extracts the key from the value, allowing KeyedSet to obtain its values’ keys.