Allocates a new branch ID.
(&mut self)
| 305 | |
| 306 | /// Allocates a new branch ID. |
| 307 | pub(crate) fn alloc_branch_id(&mut self) -> BranchId { |
| 308 | let id = BranchId::new(self.change_id, self.next_branch_idx); |
| 309 | self.next_branch_idx += 1; |
| 310 | self.last_branch_id = Some(id); |
| 311 | id |
| 312 | } |
| 313 | |
| 314 | /// Allocates a new leaf ID. |
| 315 | pub(crate) fn alloc_leaf_id(&mut self) -> LeafId { |
no outgoing calls
no test coverage detected