Add an order conflict.
(&mut self, conflict: OrderConflict)
| 363 | |
| 364 | /// Add an order conflict. |
| 365 | pub fn add_order_conflict(&mut self, conflict: OrderConflict) { |
| 366 | for change in &conflict.changes { |
| 367 | self.involved_changes.insert(*change); |
| 368 | } |
| 369 | self.order_conflicts.push(conflict); |
| 370 | } |
| 371 | |
| 372 | /// Get all order conflicts. |
| 373 | pub fn order_conflicts(&self) -> &[OrderConflict] { |