Merge stats from another operation.
(&mut self, other: InsertStats)
| 265 | |
| 266 | /// Merge stats from another operation. |
| 267 | pub fn merge(&mut self, other: InsertStats) { |
| 268 | self.changes_applied += other.changes_applied; |
| 269 | self.atoms_processed += other.atoms_processed; |
| 270 | self.conflicts_detected += other.conflicts_detected; |
| 271 | self.dependencies_applied += other.dependencies_applied; |
| 272 | self.applied_hashes.extend(other.applied_hashes); |
| 273 | self.affected_paths.extend(other.affected_paths); |
| 274 | if other.conflict_summary.is_some() { |
| 275 | self.conflict_summary = other.conflict_summary; |
| 276 | } |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | // ── InsertOutcome ──────────────────────────────────────────────────── |