-
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 RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-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(ptr_cast_array)]
This is a tracking issue for the method for casting pointers to elements to pointers to arrays.
Public API
impl<T> *const T {
pub const fn cast_array<const N: usize>(self) -> *const [T; N];
}
impl<T> *mut T {
pub const fn cast_array<const N: usize>(self) -> *mut [T; N];
}
impl<T> NonNull<T> {
pub const fn cast_array<const N: usize>(self) -> NonNull<[T; N]>;
}
Steps / History
(Remember to update the S-tracking-*
label when checking boxes.)
- ACP: ACP: add
array::from_raw_parts()
libs-team#602 - Implementation: Implement
ptr_cast_array
#144515 - Final comment period (FCP)[^1]
- Stabilization PR
Unresolved Questions
- None yet.
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 RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-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.