Struct CircularTupleWindows
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct CircularTupleWindows<I, T>
where
I: Iterator<Item = T::Item> + Clone,
T: TupleCollect + 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 tuples of a specific size.
See .circular_tuple_windows() for more
information.
Trait Implementations
impl<I, T> Clone for CircularTupleWindows<I, T>
where
I: Iterator<Item = T::Item> + Clone + Clone,
T: TupleCollect + Clone + Clone,
fn clone(&self) -> Self
impl<I, T> Debug for CircularTupleWindows<I, T>
where
I: Iterator<Item = T::Item> + Clone + Debug,
T: TupleCollect + Clone + Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<I, T> ExactSizeIterator for CircularTupleWindows<I, T>
where
I: Iterator<Item = T::Item> + Clone,
T: TupleCollect + Clone,
T::Item: Clone,
impl<I, T> FusedIterator for CircularTupleWindows<I, T>
where
I: Iterator<Item = T::Item> + Clone,
T: TupleCollect + Clone,
T::Item: Clone,
impl<I, T> Iterator for CircularTupleWindows<I, T>
where
I: Iterator<Item = T::Item> + Clone,
T: TupleCollect + Clone,
T::Item: Clone,
type Item = T;fn next(&mut self) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)