Iterate over only the change operations (non-equal).
(&self)
| 397 | |
| 398 | /// Iterate over only the change operations (non-equal). |
| 399 | pub fn changes(&self) -> impl Iterator<Item = &WordDiffOp> { |
| 400 | self.ops.iter().filter(|op| op.is_change()) |
| 401 | } |
| 402 | |
| 403 | /// Get tokens for an old range. |
| 404 | /// |