1
2
3
4
5
6
7
8
9
10
11
use crate::imp_vec::ImpVec;
use orx_pinned_vec::PinnedVec;
use std::fmt::Debug;

impl<T, P: PinnedVec<T> + Debug> Debug for ImpVec<T, P> {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        f.debug_struct("ImpVec")
            .field("pinned_vec", &self.pinned_vec)
            .finish()
    }
}