orx_concurrent_iter/implementations/iter/con_iterable.rs
1use super::ConIterOfIter;
2use crate::concurrent_iterable::ConcurrentIterable;
3use orx_iterable::{Iterable, transformations::CloningIterable};
4
5impl<I> ConcurrentIterable for CloningIterable<I>
6where
7 I: Iterator + Clone,
8 I::Item: Send + Sync,
9{
10 type Item = I::Item;
11
12 type Iter = ConIterOfIter<I>;
13
14 fn con_iter(&self) -> Self::Iter {
15 ConIterOfIter::new(self.iter())
16 }
17}