orx_concurrent_iter/implementations/range/into_con_iter.rs
1use super::con_iter::ConIterRange;
2use crate::into_concurrent_iter::IntoConcurrentIter;
3use core::ops::Range;
4
5impl<T> IntoConcurrentIter 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 IntoIter = ConIterRange<T>;
13
14 fn into_con_iter(self) -> Self::IntoIter {
15 Self::IntoIter::new(self)
16 }
17}