Skip to main content

diff_trees

Function diff_trees 

Source
pub fn diff_trees(old: &LayoutNode, new: &LayoutNode) -> Damage
Expand description

Diff a previously-presented tree against the freshly built one, returning the damaged region. Pass trees laid out at the same root size; a size change should be treated as Damage::Full by the caller.