Same as [`std::vec::Vec::as_mut_ptr`]. Note that this is technically inherited through the `DerefMut` impl but that converts `&mut Self` to `&mut [T]` which invalidates all previously derived pointers. This causes problems in Miri so by having an inherent method here it means that the borrow scope matches what we want with Miri.
(&mut self)
| 332 | // method here it means that the borrow scope matches what we want with |
| 333 | // Miri. |
| 334 | pub fn as_mut_ptr(&mut self) -> *mut T { |
| 335 | self.inner.as_mut_ptr() |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | impl<T> Deref for TryVec<T> { |
no outgoing calls