Skip to main content

apply

Function apply 

Source
pub fn apply(root: &mut Node, changes: &[Change]) -> Result<(), ApplyError>
Expand description

Apply a Change list to root in order, mutating it in place.

Applying diff(a, b) to a clone of a reproduces b exactly. Returns ApplyError only for externally-authored lists whose paths/indices don’t resolve.