pub fn with_mut<'slice, T, U>(
slice: &'slice mut [T],
f: impl for<'r> FnOnce(&'slice mut Slice<T, Generative<'r>>, ExactSize<Generative<'r>>) -> U
) -> U
Expand description
Enter a region for soundly indexing a mutable slice without bounds checks.
Prefer Generative::with_mut
if possible.
The supplied function gets a freshly constructed pair of corresponding slice reference and length tag. It has no control over the exact lifetime used for the tag.