(&self, trunk_id: TrunkId)
| 548 | } |
| 549 | |
| 550 | fn count_branches(&self, trunk_id: TrunkId) -> Result<usize, Self::Error> { |
| 551 | Ok(self.trunk_branches.get(&trunk_id).map_or(0, |v| v.len())) |
| 552 | } |
| 553 | |
| 554 | // Leaf methods |
| 555 | fn put_leaf(&mut self, leaf: &Leaf, _after: Option<LeafId>) -> Result<bool, Self::Error> { |