orx_concurrent_iter/implementations/range/
con_iterable.rs

1use super::con_iter::ConIterRange;
2use crate::concurrent_iterable::ConcurrentIterable;
3use core::ops::Range;
4
5impl<T> ConcurrentIterable for Range<T>
6where
7    T: Send + From<usize> + Into<usize>,
8    Range<T>: Default + Clone + ExactSizeIterator<Item = T>,
9{
10    type Item = T;
11
12    type Iter = ConIterRange<T>;
13
14    fn con_iter(&self) -> Self::Iter {
15        Self::Iter::new(self.clone())
16    }
17}