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

Method inserts

atomic-core/src/record/workflow/crdt/line_ops/analyzer.rs:182–184  ·  view source on GitHub ↗

Returns an iterator over inserted lines only.

(&self)

Source from the content-addressed store, hash-verified

180
181 /// Returns an iterator over inserted lines only.
182 pub fn inserts(&self) -> impl Iterator<Item = &LineChange> {
183 self.changes.iter().filter(|c| c.kind().is_insert())
184 }
185
186 /// Returns an iterator over deleted lines only.
187 pub fn deletes(&self) -> impl Iterator<Item = &LineChange> {

Callers

nothing calls this directly

Calls 3

iterMethod · 0.45
is_insertMethod · 0.45
kindMethod · 0.45

Tested by

no test coverage detected