1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{ConcurrentState, PinnedConcurrentCol};
use core::fmt::Debug;
use orx_pinned_vec::ConcurrentPinnedVec;

impl<T, P, S> Debug for PinnedConcurrentCol<T, P, S>
where
    P: ConcurrentPinnedVec<T>,
    S: ConcurrentState<T> + Debug,
{
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        f.debug_struct("PinnedConcurrentCol")
            .field("state", &self.state())
            .field("capacity", &self.capacity())
            .field("maximum_capacity", &self.maximum_capacity())
            .finish()
    }
}