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

Method is_true_replace

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

Check if this is a true replacement (both deletion and insertion).

(&self)

Source from the content-addressed store, hash-verified

339
340 /// Check if this is a true replacement (both deletion and insertion).
341 pub fn is_true_replace(&self) -> bool {
342 self.old_len > 0 && self.new_len > 0
343 }
344
345 /// Check if this replacement has any effect.
346 pub fn is_empty(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected