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

Function is_insert

atomic-core/src/record/workflow/recipes/diff_op_rules.rs:149–151  ·  view source on GitHub ↗
(op: &DiffOp, _ctx: &DiffOpContext<'_>)

Source from the content-addressed store, hash-verified

147 }
148
149 pub fn is_insert(op: &DiffOp, _ctx: &DiffOpContext<'_>) -> bool {
150 matches!(op, DiffOp::Insert { .. })
151 }
152
153 pub fn is_delete(op: &DiffOp, _ctx: &DiffOpContext<'_>) -> bool {
154 matches!(op, DiffOp::Delete { .. })

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected