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

Method old_changes

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

Returns an iterator over changes that affect old content.

(&self)

Source from the content-addressed store, hash-verified

200
201 /// Returns an iterator over changes that affect old content.
202 pub fn old_changes(&self) -> impl Iterator<Item = &LineChange> {
203 self.changes.iter().filter(|c| c.kind().affects_old())
204 }
205
206 /// Returns an iterator over changes that affect new content.
207 pub fn new_changes(&self) -> impl Iterator<Item = &LineChange> {

Callers

nothing calls this directly

Calls 3

affects_oldMethod · 0.80
iterMethod · 0.45
kindMethod · 0.45

Tested by

no test coverage detected