pub fn wu_changes<T: PartialEq + Clone + Debug>(
d: &[DiffResult],
b: &[T],
) -> Vec<Change<T>>Expand description
Convert a slice of wu_diff::DiffResult into a Vec<Change>.
Note that unlike lcs_changes(), b is needed to clone inserted items because they are not
included in the wu_diff::DiffResult.
ยงPanics
Panics if not able to resolve the old index of a removed item or the new index of an added item