pub fn validate_doc_patch(
text: &str,
patch: &DocPatch,
) -> Result<ValidatedPatch, PatchConflict>Expand description
Validate structural patch invariants before any mutation.
end_line is exclusive.
Allocation: clones only the validated edit list. Complexity: O(e), e = edit count.