diff

Function diff 

Source
pub fn diff<T: Tree>(a: &T, b: &T) -> (Box<[Edit]>, T::Weight)
Expand description

Finds the lowest cost sequence of Edits that transforms one Tree into the other.

The sequence of Edits is understood to apply to the left-hand side so it becomes the right-hand side.