-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Open
Labels
A-autovectorizationArea: Autovectorization, which can impact perf or code sizeArea: Autovectorization, which can impact perf or code sizeC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: 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.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Feature gate: #![feature(iter_next_chunk)]
This is a tracking issue for the .next_chunk() method on iterators which allows you to advance the iterator N elements and return an array [T; N]
Public API
use core::array;
trait Iterator {
type Item;
fn next_chunk<const N: usize>(&mut self,) -> Result<[Self::Item; N], array::IntoIter<Self::Item, N>>
where
Self: Sized;
}Steps / History
- Implementation:
- Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- Naming: other options include
next_array()ornext_array_chunk(). - Should we also add
next_chunk_backtoDoubleEndedIterator? - How should we handle
N = 0?
dullbananas, mijamo, figsoda, sadilekivan, denisandroid and 20 more641i130, mark-i-m, eidoom, pavelskipenes, heitorPB and 26 more
Metadata
Metadata
Assignees
Labels
A-autovectorizationArea: Autovectorization, which can impact perf or code sizeArea: Autovectorization, which can impact perf or code sizeC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: 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.Relevant to the library API team, which will review and decide on the PR/issue.