Clone always produces an owned copy (materializes zero-copy data).
(&self)
| 98 | impl<T: Copy> Clone for DenseArray<T> { |
| 99 | /// Clone always produces an owned copy (materializes zero-copy data). |
| 100 | fn clone(&self) -> Self { |
| 101 | Self::Owned(self.to_vec()) |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | impl<T: Copy + std::fmt::Debug> std::fmt::Debug for DenseArray<T> { |