1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{iter::constructors::into_con_iter::IterIntoConcurrentIter, ConIterOfIter};

impl<T: Send + Sync, Iter> IterIntoConcurrentIter for Iter
where
    Iter: Iterator<Item = T>,
{
    type Item = T;

    type ConIter = ConIterOfIter<T, Iter>;

    fn into_con_iter(self) -> Self::ConIter {
        Self::ConIter::new(self)
    }
}