Method
update_leaf_state
(&mut self, id: LeafId, state: LeafState)
Source from the content-addressed store, hash-verified
| 225 | } |
| 226 | |
| 227 | fn update_leaf_state(&mut self, id: LeafId, state: LeafState) -> Result<(), Self::Error> { |
| 228 | if let Some(leaf) = self.leaves.get_mut(&id) { |
| 229 | leaf.set_state(state); |
| 230 | } |
| 231 | Ok(()) |
| 232 | } |
| 233 | |
| 234 | fn update_leaf_content(&mut self, id: LeafId, range: Range<u32>) -> Result<(), Self::Error> { |
| 235 | if let Some(leaf) = self.leaves.get_mut(&id) { |
Callers
nothing calls this directly
Tested by
no test coverage detected