Skip to main content

apply_patch

Function apply_patch 

Source
pub fn apply_patch(
    doc: &ResearchContextDocumentV1,
    ops: &[PatchOpV1],
) -> Result<ResearchContextDocumentV1, String>
Expand description

Apply ops in order; any op that does not fit the document is an error.