From fe4b481edf219cc149d8e32266e80d3eb8792673 Mon Sep 17 00:00:00 2001 From: Jason Ramapuram Date: Wed, 30 Mar 2016 02:47:55 +0200 Subject: [PATCH] Add support for partialeq & debug to dim4 Very annoying doing: ```rust if arr.dims().unwrap().get().clone() == arr2.dims().unwrap().get().clone() {} ``` --- src/dim4.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dim4.rs b/src/dim4.rs index 5a9a721a6..29eda2375 100644 --- a/src/dim4.rs +++ b/src/dim4.rs @@ -2,7 +2,7 @@ use std::fmt; use std::ops::Index; /// Dim4 is used to store [Array](./struct.Array.html) dimensions -#[derive(Copy, Clone)] +#[derive(Copy, Clone, PartialEq, Debug)] pub struct Dim4 { dims: [u64; 4], }