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

Method is_root_operation

atomic-core/src/change/graph_op.rs:638–640  ·  view source on GitHub ↗

Check if this graph_op represents a root operation.

(&self)

Source from the content-addressed store, hash-verified

636
637 /// Check if this graph_op represents a root operation.
638 pub fn is_root_operation(&self) -> bool {
639 matches!(self, GraphOp::AddRoot { .. } | GraphOp::DelRoot { .. })
640 }
641
642 /// Get a human-readable description of this graph_op type.
643 pub fn type_name(&self) -> &'static str {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected