Returns conflicts of the specified kind.
(&self, kind: ConflictKind)
| 595 | |
| 596 | /// Returns conflicts of the specified kind. |
| 597 | pub fn by_kind(&self, kind: ConflictKind) -> impl Iterator<Item = &CrdtConflict> { |
| 598 | self.conflicts.iter().filter(move |c| c.kind == kind) |
| 599 | } |
| 600 | |
| 601 | /// Returns the count of conflicts of the specified kind. |
| 602 | pub fn count_by_kind(&self, kind: ConflictKind) -> usize { |