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

Method is_insert_only

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

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

(&self)

Source from the content-addressed store, hash-verified

329
330 /// Check if this is a pure insertion (no deletion).
331 pub fn is_insert_only(&self) -> bool {
332 self.old_len == 0 && self.new_len > 0
333 }
334
335 /// Check if this is a pure deletion (no insertion).
336 pub fn is_delete_only(&self) -> bool {

Callers 1

fmtMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected