pub trait KeyFor {
type Key;
type Value;
// Required method
fn key_for(value: &Self::Value) -> Self::Key;
}Expand description
Represents logic of providing key as specified (associated) type for given as specified (associated) type value by reference.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.