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

Method plan

atomic-repository/src/tracking/tree_ops.rs:92–104  ·  view source on GitHub ↗
(txn: &T, operations: I)

Source from the content-addressed store, hash-verified

90
91impl TreeProjectionPlan {
92 pub fn plan<T, I>(txn: &T, operations: I) -> Result<Self, TreeProjectionError>
93 where
94 T: TreeTxnT + PathClaimTxnT,
95 I: IntoIterator<Item = TreeProjectionOperation>,
96 {
97 let mut plan = Self::default();
98 for operation in operations {
99 plan.push(operation)?;
100 }
101 plan.derive_directory_occupancy(txn)?;
102 plan.validate(txn)?;
103 Ok(plan)
104 }
105
106 fn derive_directory_occupancy<T: TreeTxnT + PathClaimTxnT>(
107 &mut self,

Callers

nothing calls this directly

Calls 3

pushMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected