Skip to content

Tracking Issue for maybe_uninit_array_assume_initย #80908

Closed
@joboet

Description

Feature gate: #![feature(maybe_uninit_array_assume_init)]

This is a tracking issue for MaybeUninit::array_assume_init.

Public API

// core::mem::maybe_uninit

impl<T> MaybeUninit<T> {
    pub unsafe fn array_assume_init<const N: usize>(array: [Self; N]) -> [T; N];
}

Steps / History

Unresolved Questions

  • Should this be a const function?
  • Should this be a method of array?
  • Should this method be replaced by a conversion method from [MaybeUninit<T>; N] to MaybeUninit<[T; N]> (see comment).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-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