pub trait CombineByKey {
type Elem;
// Required method
fn combine_by_key<F, K>(&mut self, template: &Self, get_key: F)
where F: FnMut(&Self::Elem) -> K,
K: Hash + Eq;
}
Expand description
Combine and deduplicate items in a container that allows duplicates normally (such as Vec
Required Associated Types§
Required Methods§
fn combine_by_key<F, K>(&mut self, template: &Self, get_key: F)
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.