orx-concurrent-iter 3.3.0

A thread-safe and ergonomic concurrent iterator trait and efficient lock-free implementations.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::{ConIterJaggedOwned, RawJagged};
use crate::{IntoConcurrentIter, implementations::jagged_arrays::JaggedIndexer};

impl<T, X> IntoConcurrentIter for RawJagged<T, X>
where
    T: Send,
    X: JaggedIndexer,
{
    type Item = T;

    type IntoIter = ConIterJaggedOwned<T, X>;

    fn into_con_iter(self) -> Self::IntoIter {
        ConIterJaggedOwned::new(self, 0)
    }
}