Get the edit distance (number of token changes). This counts insertions + deletions, where replacements count as both a deletion and an insertion.
(&self)
| 392 | /// This counts insertions + deletions, where replacements count |
| 393 | /// as both a deletion and an insertion. |
| 394 | pub fn edit_distance(&self) -> usize { |
| 395 | self.insertions() + self.deletions() |
| 396 | } |
| 397 | |
| 398 | /// Iterate over only the change operations (non-equal). |
| 399 | pub fn changes(&self) -> impl Iterator<Item = &WordDiffOp> { |
nothing calls this directly
no test coverage detected