Tracking Issue for pointer::cast_array (original) (raw)
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 *const T { pub const fn cast_array(self) -> *const [T; N]; } impl *mut T { pub const fn cast_array(self) -> *mut [T; N]; } impl NonNull { pub const fn cast_array(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.