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
- Should
array::try_map be constified
Feature gate:
#![feature(const_array)]This is a tracking issue for const
[T]::mapandarray::from_fn.Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)Unresolved Questions
array::try_mapbe constifiedFootnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩