This is a tracking issue for the slice::split_at_unchecked() and slice::split_at_mut_unchecked() functions.
The feature gate for the issue is #![feature(slice_split_at_unchecked)].
API
impl<T> [T] {
pub const unsafe fn split_at_unchecked(&self, mid: usize) -> (&[T], &[T]);
pub const unsafe fn split_at_mut_unchecked(&mut self, mid: usize) -> (&mut [T], &mut [T]);
}
Steps
Unresolved Questions
- Is this worth having if it's simple enough to implement manually around
slice::get_unchecked() or slice::from_raw_parts()?
This is a tracking issue for the
slice::split_at_unchecked()andslice::split_at_mut_unchecked()functions.The feature gate for the issue is
#![feature(slice_split_at_unchecked)].API
Steps
Unresolved Questions
slice::get_unchecked()orslice::from_raw_parts()?