1 2 3 4 5 6 7 8 9 10 11
use crate::Result; pub trait Merge { type Item; fn merge(left: &Self::Item, right: &Self::Item) -> Result<Self::Item>; fn merge_peaks(peak1: &Self::Item, peak2: &Self::Item) -> Result<Self::Item> { Self::merge(peak1, peak2) } }