Function similar::algorithms::diff_slices[][src]

pub fn diff_slices<D, T>(
    alg: Algorithm,
    d: &mut D,
    old: &[T],
    new: &[T]
) -> Result<(), D::Error> where
    D: DiffHook,
    T: Eq + Hash + Ord

Shortcut for diffing slices with a specific algorithm.