Skip to main content

diff

Function diff 

Source
pub fn diff(old: &WidgetTree, new: &WidgetTree) -> Vec<DiffOp>
Expand description

Compute the ordered diff that turns old into new.

Both trees are assumed to share an id space (ids are stable across frames). Removals are emitted before inserts/moves so a backend can free first.