From be37a4ed4059ce79321c5e3f2438934866ec7be5 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 19 Jan 2024 20:14:57 +0100 Subject: add function_cache for performence gain --- src/math/operation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/math/operation.rs') 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 -- cgit v1.2.3-70-g09d2