Open
Description
Feature gate: #![feature(const_array_each_ref)]
This is a tracking issue for supporting the each_ref
and each_mut
methods in [T; N]
in constant expressions.
Public API
impl<T, const N: usize> [T; N] {
pub const fn each_ref(&self) -> [&T; N];
pub const fn each_mut(&mut self) -> [&mut T; N];
}
- Implementation: Support
each_ref
andeach_mut
in[T; N]
in constant expressions. #133288 - Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- None yet.