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
17
use crate::{ExactSizeConcurrentIter, implementations::slice_mut::ConIterSliceMut};
use core::fmt::Debug;

impl<T> Debug for ConIterSliceMut<'_, T>
where
    T: Send + Sync,
{
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        let remaining = self.len();
        let num_taken = self.slice().len() - remaining;
        f.debug_struct("ConIterSliceMut")
            .field("initial_len", &self.slice().len())
            .field("num_taken", &num_taken)
            .field("remaining", &remaining)
            .finish()
    }
}