-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Feature gate: #![feature(slice_from_ptr_range)]
This is a tracking issue for slice::{from_ptr_range, from_mut_ptr_range}
, counterparts to slice::{as_ptr_range, as_mut_ptr_range}
.
Public API
// core::slice
pub unsafe fn from_ptr_range<'a, T>(range: Range<*const T>) -> &'a [T];
pub unsafe fn from_mut_ptr_range<'a, T>(range: Range<*mut T>) -> &'a mut [T];
Steps / History
- Implementation: Add
slice::{from_ptr_range, from_mut_ptr_range}
#89793 - Made const: Make
from{,_mut}_ptr_range
const #97419 - Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- Will this get in the way of any future changes to the
Range
type(s) that we might want to make in a future version or edition?
stepancheg, zopsicle, Tropix126 and tuguzTbjoernager
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.