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

Method is_insert

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

Check if this is an Insert operation.

(&self)

Source from the content-addressed store, hash-verified

154
155 /// Check if this is an Insert operation.
156 pub fn is_insert(&self) -> bool {
157 matches!(self, DiffOp::Insert { .. })
158 }
159
160 /// Check if this is a Delete operation.
161 pub fn is_delete(&self) -> bool {

Callers 1

Calls

no outgoing calls

Tested by 1