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/function.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/math/function.rs') diff --git a/src/math/function.rs b/src/math/function.rs index 93d288c..700bee1 100644 --- a/src/math/function.rs +++ b/src/math/function.rs @@ -1,11 +1,13 @@ use super::expression::Expression; use super::{complex::Complex, context::Context}; +#[derive(PartialEq, Eq, Hash, Clone)] enum FunctionArgumentType { ExpressionArgument(Vec), ValueArgument(Vec), } +#[derive(PartialEq, Eq, Hash, Clone)] pub struct FunctionArgument { args: FunctionArgumentType, len: usize, -- cgit v1.2.3-70-g09d2