Skip to main content

apply_patch

Function apply_patch 

Source
pub fn apply_patch(doc: &Value, ops: &[PatchOp]) -> Result<Value, PatchError>
Expand description

Apply ops in order to a copy of doc. Either every operation applies or the document is returned unchanged inside the error.