Check if this is a pure deletion (no insertion).
(&self)
| 334 | |
| 335 | /// Check if this is a pure deletion (no insertion). |
| 336 | pub fn is_delete_only(&self) -> bool { |
| 337 | self.old_len > 0 && self.new_len == 0 |
| 338 | } |
| 339 | |
| 340 | /// Check if this is a true replacement (both deletion and insertion). |
| 341 | pub fn is_true_replace(&self) -> bool { |