orx_split_vec/fragment/
clone.rs

1use crate::Fragment;
2use alloc::vec::Vec;
3
4impl<T: Clone> Clone for Fragment<T> {
5    fn clone(&self) -> Self {
6        let mut data = Vec::with_capacity(self.data.capacity());
7        data.extend(self.data.iter().cloned());
8        data.into()
9    }
10}