(&self, trunk_id: TrunkId)
| 606 | } |
| 607 | |
| 608 | fn count_branches(&self, trunk_id: TrunkId) -> Result<usize, Self::Error> { |
| 609 | Ok(self.trunk_branches.get(&trunk_id).map_or(0, |v| v.len())) |
| 610 | } |
| 611 | |
| 612 | fn put_leaf(&mut self, leaf: &Leaf, _after: Option<LeafId>) -> Result<bool, Self::Error> { |
| 613 | let is_new = !self.leaves.contains_key(&leaf.id()); |