Get the total number of bytes that were deleted.
(&self)
| 463 | |
| 464 | /// Get the total number of bytes that were deleted. |
| 465 | pub fn deleted_bytes(&self) -> usize { |
| 466 | self.old_hunks |
| 467 | .iter() |
| 468 | .filter(|s| s.is_change()) |
| 469 | .map(|s| s.len()) |
| 470 | .sum() |
| 471 | } |
| 472 | |
| 473 | /// Get the total number of bytes that were inserted. |
| 474 | pub fn inserted_bytes(&self) -> usize { |