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
use super::con_iter::ConIterSliceMut;
use crate::into_concurrent_iter::IntoConcurrentIter;

impl<'a, T: 'a> IntoConcurrentIter for &'a mut [T]
where
    T: Send,
{
    type Item = &'a mut T;

    type IntoIter = ConIterSliceMut<'a, T>;

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