Skip to content

Commit 43cfe24

Browse files
Philippe-Choletjswrenn
authored andcommitted
ExactSizeIterator for TupleWindows
With the additional condition that `I` is an exact size iterator.
1 parent 5157128 commit 43cfe24

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/tuple_impl.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,14 @@ where
192192
}
193193
}
194194

195+
impl<I, T> ExactSizeIterator for TupleWindows<I, T>
196+
where
197+
I: ExactSizeIterator<Item = T::Item>,
198+
T: HomogeneousTuple + Clone,
199+
T::Item: Clone,
200+
{
201+
}
202+
195203
impl<I, T> FusedIterator for TupleWindows<I, T>
196204
where
197205
I: FusedIterator<Item = T::Item>,

0 commit comments

Comments
 (0)