Skip to main content

diff_children

Function diff_children 

Source
pub fn diff_children(
    old_children: &[Box<dyn ElementBuilder>],
    new_children: &[Box<dyn ElementBuilder>],
) -> Vec<ChildDiff>
Expand description

Diff children using content-hash-based matching.

This algorithm:

  1. Computes hashes for all children
  2. Matches children by hash (handles reordering)
  3. Detects additions, removals, and modifications