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.)
Unresolved Questions
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
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)array::from_raw_parts()libs-team#602ptr_cast_array#144515Unresolved Questions