Allocates a new trunk ID.
(&mut self)
| 298 | |
| 299 | /// Allocates a new trunk ID. |
| 300 | pub(crate) fn alloc_trunk_id(&mut self) -> TrunkId { |
| 301 | let id = TrunkId::new(self.change_id, self.next_trunk_idx); |
| 302 | self.next_trunk_idx += 1; |
| 303 | id |
| 304 | } |
| 305 | |
| 306 | /// Allocates a new branch ID. |
| 307 | pub(crate) fn alloc_branch_id(&mut self) -> BranchId { |