1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
    }

    fn try_get_exact_len(&self) -> Option<usize> {
        None
    }
}