Merge another outcome into this one. This is useful when collecting results from multiple output operations (e.g., outputting different subtrees). # Arguments `other` - The outcome to merge in # Example ```rust use atomic_core::output::repo::OutputOutcome; let mut outcome1 = OutputOutcome::new(); outcome1.record_file("a.rs", 100); let mut outcome2 = OutputOutcome::new(); outcome2.record_fil
(&mut self, other: OutputOutcome)
| 308 | /// assert_eq!(outcome1.bytes_written, 300); |
| 309 | /// ``` |
| 310 | pub fn merge(&mut self, other: OutputOutcome) { |
| 311 | self.files.extend(other.files); |
| 312 | self.directories.extend(other.directories); |
| 313 | self.skipped.extend(other.skipped); |
| 314 | self.bytes_written += other.bytes_written; |
| 315 | self.redundant_edges += other.redundant_edges; |
| 316 | } |
| 317 | |
| 318 | /// Create a summary string for display. |
| 319 | /// |