Tracking Issue for Iterator::next_chunk
· Issue #98326 · rust-lang/rust (original) (raw)
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]
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;
}