[][src]Trait object_merge::CombineByKey

pub trait CombineByKey {
    type Elem;
    fn combine_by_key<F, K>(&mut self, template: &Self, get_key: F)
        F: FnMut(&Self::Elem) -> K,
        K: Hash + Eq
; }

Combine and deduplicate items in a container that allows duplicates normally (such as Vec) while preserving the original element order.

Associated Types

Required Methods

Implementations on Foreign Types

impl<T> CombineByKey for Option<T> where
    T: CombineByKey + Clone

impl<T> CombineByKey for Vec<T> where
    T: Clone