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::ConIterVec};
use core::fmt::Debug;

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