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

Method is_delete_only

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

Check if this is a pure deletion (no insertion).

(&self)

Source from the content-addressed store, hash-verified

334
335 /// Check if this is a pure deletion (no insertion).
336 pub fn is_delete_only(&self) -> bool {
337 self.old_len > 0 && self.new_len == 0
338 }
339
340 /// Check if this is a true replacement (both deletion and insertion).
341 pub fn is_true_replace(&self) -> bool {

Callers 1

fmtMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected