pub trait PropGet<K> {
type Output: Sized;
// Required method
fn get(&self, key: K) -> Self::Output;
// Provided methods
fn map<F, O>(self, fun: F) -> Map<Self, F>
where Self: Sized,
F: Fn(Self::Output) -> O { ... }
fn by_ref(&self) -> &Self { ... }
}Expand description
An abstract property that maps keys in domain K to the corresponding values.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".