pub fn apply_edits(old: &str, edits: &[Edit]) -> StringExpand description
Apply edits to old left-to-right, each expressed against the text its
predecessors produced — the shape an LSP didChange batch arrives in.
§Panics
If any edit does not fit the text its predecessors produced. Use
try_apply_edits for a chain of unproven provenance.