pub fn minimal_edits(old: &str, new: &str) -> Vec<Edit>Expand description
Edits that transform old into new, one per changed region.
Returned bottom-up, so applying them in order does not shift the
positions of edits not yet applied — the same ordering > / < /
= use.
An empty result means the formatter agreed with the buffer. That is the common case for an already-formatted file and must cost nothing: no edit, no undo entry, no repaint.