pub fn diff(old: &Node, new: &Node, out: &mut Vec<Patch>)Expand description
The patches that bring old, the tree the window holds, to new, appended to out.
The whole tree is sent (SetRoot) when the root changed kind or key, or when the keys of
some node’s children are not unique: patches by key need both to hold.