(txn: &T, operations: I)
| 90 | |
| 91 | impl 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, |
nothing calls this directly
no test coverage detected