Returns an iterator over modified lines only.
(&self)
| 190 | |
| 191 | /// Returns an iterator over modified lines only. |
| 192 | pub fn modifies(&self) -> impl Iterator<Item = &LineChange> { |
| 193 | self.changes.iter().filter(|c| c.kind().is_modify()) |
| 194 | } |
| 195 | |
| 196 | /// Returns an iterator over moved lines only. |
| 197 | pub fn moves(&self) -> impl Iterator<Item = &LineChange> { |