pub trait Get<Q> {
type Key: Borrow<Q>;
type Value;
// Required method
fn get(&self, key: &Q) -> Option<&Self::Value>;
}Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".