Function similar::capture_diff_slices_deadline

source ยท
pub fn capture_diff_slices_deadline<T>(
    alg: Algorithm,
    old: &[T],
    new: &[T],
    deadline: Option<Instant>,
) -> Vec<DiffOp>
where T: Eq + Hash + Ord,
Expand description

Creates a diff between old and new with the given algorithm capturing the ops.

Works like capture_diff_slices but with an optional deadline.