MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / count_by_kind

Method count_by_kind

atomic-core/src/crdt/apply/conflict.rs:602–604  ·  view source on GitHub ↗

Returns the count of conflicts of the specified kind.

(&self, kind: ConflictKind)

Source from the content-addressed store, hash-verified

600
601 /// Returns the count of conflicts of the specified kind.
602 pub fn count_by_kind(&self, kind: ConflictKind) -> usize {
603 self.conflicts.iter().filter(|c| c.kind == kind).count()
604 }
605
606 /// Returns `true` if there are any conflicts requiring user action.
607 pub fn has_user_actionable(&self) -> bool {

Callers

nothing calls this directly

Calls 2

countMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected