Returns an iterator over moved lines only.
(&self)
| 195 | |
| 196 | /// Returns an iterator over moved lines only. |
| 197 | pub fn moves(&self) -> impl Iterator<Item = &LineChange> { |
| 198 | self.changes.iter().filter(|c| c.kind().is_move()) |
| 199 | } |
| 200 | |
| 201 | /// Returns an iterator over changes that affect old content. |
| 202 | pub fn old_changes(&self) -> impl Iterator<Item = &LineChange> { |