derive(Clone) for Array2D
This commit is contained in:
parent
93e76fc5ea
commit
425f093756
|
|
@ -1,7 +1,7 @@
|
|||
use std::ops::{Index, IndexMut};
|
||||
|
||||
/// 3D row-major dynamic array
|
||||
#[derive(Debug)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Array2D<T> {
|
||||
data: Vec<T>,
|
||||
height: usize,
|
||||
|
|
|
|||
Loading…
Reference in New Issue