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.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".