aboutsummaryrefslogtreecommitdiff
path: root/src/math/operation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/operation.rs')
-rw-r--r--src/math/operation.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/operation.rs b/src/math/operation.rs
index bcf6510..e54a2d1 100644
--- a/src/math/operation.rs
+++ b/src/math/operation.rs
@@ -2,7 +2,7 @@ use crate::math::complex::Complex;
pub type Operator = fn(Complex, Complex) -> Complex;
-#[derive(Clone)]
+#[derive(Clone, PartialEq, Eq, Hash)]
pub struct Operation {
sign: char,
func: Operator