Check if this pair represents unchanged content.
(&self)
| 546 | |
| 547 | /// Check if this pair represents unchanged content. |
| 548 | pub fn is_unchanged(&self) -> bool { |
| 549 | matches!( |
| 550 | (&self.old_line, &self.new_line), |
| 551 | (Some(old), Some(new)) if old.status == LineStatus::Unchanged && new.status == LineStatus::Unchanged |
| 552 | ) |
| 553 | } |
| 554 | } |
| 555 | |
| 556 | /// Iterator over line pairs in a side-by-side diff. |