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.)

Unresolved Questions