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

Method changes

atomic-core/src/diff/ops.rs:460–462  ·  view source on GitHub ↗

Iterate over only the change operations (non-Equal).

(&self)

Source from the content-addressed store, hash-verified

458
459 /// Iterate over only the change operations (non-Equal).
460 pub fn changes(&self) -> impl Iterator<Item = &DiffOp> {
461 self.ops.iter().filter(|op| op.is_change())
462 }
463
464 /// Get the operations as a slice.
465 pub fn ops(&self) -> &[DiffOp] {

Callers 4

print_unifiedMethod · 0.45
test_diff_result_changesFunction · 0.45
convert_diffMethod · 0.45

Calls 2

iterMethod · 0.45
is_changeMethod · 0.45

Tested by 2

test_diff_result_changesFunction · 0.36