Open
Description
Feature gate: #![feature(vec_into_chunks)]
This is a tracking issue for Vec::into_chunks
. The ACP is in rust-lang/libs-team#583.
This converts Vec<T>
into Vec<[T; N]>
, reversing Vec::into_flattened
.
Public API
// alloc::vec
impl<T, A: Allocator> Vec<T, A> {
pub fn into_chunks<const N: usize>(mut self) -> Vec<[T; N], A>;
}
Steps / History
(Remember to update the S-tracking-*
label when checking boxes.)
- Implementation: Add
Vec::into_chunks
#142138 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.