collect_leaf_changes

Function collect_leaf_changes 

Source
pub fn collect_leaf_changes<'mem, 'facet>(
    diff: &Diff<'mem, 'facet>,
) -> Vec<LeafChange<'mem, 'facet>>
Expand description

Collect all leaf-level changes with their paths.

This walks the diff tree recursively and collects every terminal change (scalar replacements) along with the path to reach them. This is useful for compact display: if there’s only one leaf change deep in a tree, you can show path.to.field: old → new instead of nested structure.