aboutsummaryrefslogtreecommitdiff
path: root/src/math/operation.rs
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2024-01-19 20:14:57 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2024-01-19 20:14:57 +0100
commitbe37a4ed4059ce79321c5e3f2438934866ec7be5 (patch)
tree9ab9ece4b21bd805e614743420896dafe9f794dd /src/math/operation.rs
parent1c5233b185e52d42c7878ac8b6cf046a5bb54a09 (diff)
add function_cache for performence gain
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