Check if there are any changes.
(&self)
| 98 | impl SemanticDiffStats { |
| 99 | /// Check if there are any changes. |
| 100 | pub fn has_changes(&self) -> bool { |
| 101 | self.lines_added > 0 |
| 102 | || self.lines_deleted > 0 |
| 103 | || self.lines_modified > 0 |
| 104 | || self.tokens_inserted > 0 |
| 105 | || self.tokens_deleted > 0 |
| 106 | || self.tokens_replaced > 0 |
| 107 | } |
| 108 | |
| 109 | /// Get the total number of line changes. |
| 110 | pub fn total_line_changes(&self) -> usize { |