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

Method by_kind

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

Returns conflicts of the specified kind.

(&self, kind: ConflictKind)

Source from the content-addressed store, hash-verified

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 {

Callers 1

test_tracker_by_kindFunction · 0.80

Calls 1

iterMethod · 0.45

Tested by 1

test_tracker_by_kindFunction · 0.64