(&mut self)
| 250 | /// Like [`NextUnchecked::next_unchecked`] but doesn't dereference the `T`. |
| 251 | #[inline(always)] |
| 252 | pub unsafe fn next_unchecked_as_ptr(&mut self) -> *const T { |
| 253 | #[cfg(debug_assertions)] |
| 254 | assert!((self.ptr.wrapping_add(1) as usize) <= self.end as usize); |
| 255 | let p = self.ptr; |
| 256 | self.ptr = self.ptr.add(1); |
| 257 | p |
| 258 | } |
| 259 | |
| 260 | #[inline(always)] |
| 261 | pub unsafe fn advance(&mut self, n: usize) { |