derive(Clone) for Array2D

This commit is contained in:
Matthew Gordon 2020-09-04 22:01:14 -04:00
parent 93e76fc5ea
commit 425f093756
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
use std::ops::{Index, IndexMut}; use std::ops::{Index, IndexMut};
/// 3D row-major dynamic array /// 3D row-major dynamic array
#[derive(Debug)] #[derive(Clone, Debug)]
pub struct Array2D<T> { pub struct Array2D<T> {
data: Vec<T>, data: Vec<T>,
height: usize, height: usize,