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

Function leaf_op_discriminant

atomic-core/src/apply/file_ops.rs:588–595  ·  view source on GitHub ↗

Debug label for a leaf op's variant (batch-refusal tracing).

(leaf_op: &LeafOp)

Source from the content-addressed store, hash-verified

586
587/// Debug label for a leaf op's variant (batch-refusal tracing).
588fn leaf_op_discriminant(leaf_op: &LeafOp) -> &'static str {
589 match leaf_op {
590 LeafOp::Insert { .. } => "Insert",
591 LeafOp::Delete { .. } => "Delete",
592 LeafOp::Replace { .. } => "Replace",
593 LeafOp::Restore { .. } => "Restore",
594 }
595}
596
597/// Apply FileOps for a single file.
598fn apply_single_file_ops<T: MutTxnT>(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected