(
&mut self,
id: LeafId,
range: Range<u32>,
)
| 646 | } |
| 647 | |
| 648 | fn update_leaf_content( |
| 649 | &mut self, |
| 650 | id: LeafId, |
| 651 | range: Range<u32>, |
| 652 | ) -> Result<(), Self::Error> { |
| 653 | if let Some(leaf) = self.leaves.get_mut(&id) { |
| 654 | leaf.set_content_range(range); |
| 655 | } |
| 656 | Ok(()) |
| 657 | } |
| 658 | |
| 659 | fn list_leaves(&self, branch_id: BranchId) -> Result<Vec<LeafId>, Self::Error> { |
| 660 | Ok(self |