Check if this is a pure insertion (no deletion).
(&self)
| 329 | |
| 330 | /// Check if this is a pure insertion (no deletion). |
| 331 | pub fn is_insert_only(&self) -> bool { |
| 332 | self.old_len == 0 && self.new_len > 0 |
| 333 | } |
| 334 | |
| 335 | /// Check if this is a pure deletion (no insertion). |
| 336 | pub fn is_delete_only(&self) -> bool { |