pub trait CollectByKey<Item, Key, Output> {
// Required method
fn collect_by_key(self, f: impl Fn(&Item) -> Key) -> Output;
}Required Methods§
fn collect_by_key(self, f: impl Fn(&Item) -> Key) -> Output
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".