Method
leaf
(
id: &mut LeafId,
f: &mut impl FnMut(crate::types::NodeId) -> Result<crate::types::NodeId, E>,
)
Source from the content-addressed store, hash-verified
| 360 | Ok(()) |
| 361 | } |
| 362 | fn leaf<E>( |
| 363 | id: &mut LeafId, |
| 364 | f: &mut impl FnMut(crate::types::NodeId) -> Result<crate::types::NodeId, E>, |
| 365 | ) -> Result<(), E> { |
| 366 | if !id.change_id().is_root() { |
| 367 | *id = LeafId::new(f(id.change_id())?, id.leaf_idx()); |
| 368 | } |
| 369 | Ok(()) |
| 370 | } |
| 371 | fn leaves<E>( |
| 372 | ops: &mut [LeafOp], |
| 373 | f: &mut impl FnMut(crate::types::NodeId) -> Result<crate::types::NodeId, E>, |
Callers
nothing calls this directly
Tested by
no test coverage detected