Skip to content

Tracking Issue for pointer::cast_array #144514

@scottmcm

Description

@scottmcm

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

  • None yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions