(&mut self)
| 174 | /// Panics if the local ID overflows. |
| 175 | #[must_use] |
| 176 | pub const fn take_and_advance(&mut self) -> Self { |
| 177 | let current = *self; |
| 178 | self.0 = current.0.checked_add(1).expect("local id overflow"); |
| 179 | current |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | impl fmt::LowerHex for LocalId { |