pub trait MapUtils {
type Item;
// Required methods
fn associate_to_map<K, V, F>(self, transform: F) -> HashMap<K, V>
where F: Fn(Self::Item) -> (K, V),
K: Eq + Hash;
fn associate_with_to_map<B, F>(self, transform: F) -> HashMap<Self::Item, B>
where F: Fn(Self::Item) -> B;
}
Required Associated Types§
Required Methods§
fn associate_to_map<K, V, F>(self, transform: F) -> HashMap<K, V>
fn associate_with_to_map<B, F>(self, transform: F) -> HashMap<Self::Item, B>
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.