pub trait CoalescePredicate<Item, T> {
    // Required method
    fn coalesce_pair(&mut self, t: T, item: Item) -> Result<T, (T, T)>;
}

Required Methods§

source

fn coalesce_pair(&mut self, t: T, item: Item) -> Result<T, (T, T)>

Implementors§

source§

impl<DP, T> CoalescePredicate<T, (usize, T)> for DedupPredWithCount2CoalescePred<DP>
where DP: DedupPredicate<T>,

source§

impl<DP, T> CoalescePredicate<T, T> for DedupPred2CoalescePred<DP>
where DP: DedupPredicate<T>,

source§

impl<F, Item, T> CoalescePredicate<Item, T> for F
where F: FnMut(T, Item) -> Result<T, (T, T)>,