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
.