pub fn tree_diff(old: &SdfNode, new: &SdfNode) -> TreePatch
Compute the structural diff between two SDF trees.
Returns a TreePatch describing the minimal set of Replace operations needed to transform old into new.
TreePatch
Replace
old
new