1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::ConcurrentVec;
use orx_concurrent_option::ConcurrentOption;
use orx_fixed_vec::IntoConcurrentPinnedVec;

impl<T, P> Clone for ConcurrentVec<T, P>
where
    P: IntoConcurrentPinnedVec<ConcurrentOption<T>>,
    T: Clone,
{
    fn clone(&self) -> Self {
        let core = unsafe { self.core.clone_with_len(self.len()) };
        Self { core }
    }
}