Tracking Issue for const_array (original) (raw)

Feature gate: #![feature(const_array)]

This is a tracking issue for const [T]::map and array::from_fn.

Public API

// core::array impl<T, const N: usize> [T; N] { pub const fn map<F, U>(self, f: F) -> [U; N] where F: [const] FnMut(T) -> U + [const] Destruct, U: [const] Destruct; }

pub const fn from_fn<T: [const] Destruct, const N: usize, F>(f: F) -> [T; N] where F: [const] FnMut(usize) -> T + [const] Destruct;

Steps / History

(Remember to update the S-tracking-* label when checking boxes.)

Unresolved Questions

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html