Struct CircularArrayWindows
pub struct CircularArrayWindows<I, const N: usize>
where
I: Iterator + Sized,
I::Item: Clone, { /* private fields */ }
An iterator over all windows, wrapping back to the first elements when the window would otherwise exceed the length of the iterator, producing arrays of a specific size.
See .circular_array_windows()
for more information.
Trait Implementations
impl<I, const N: usize> Clone for CircularArrayWindows<I, N>
where
I: Iterator + Sized + Clone,
I::Item: Clone + Clone,
fn clone(&self) -> Self
impl<I, const N: usize> Debug for CircularArrayWindows<I, N>
where
I: Iterator + Sized + Debug,
I::Item: Clone + Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<I, const N: usize> Iterator for CircularArrayWindows<I, N>
where
I: Iterator + Sized,
I::Item: Clone,
type Item = [<I as Iterator>::Item; N];fn next(&mut self) -> Option<[I::Item; N]>