aboutsummaryrefslogtreecommitdiff
path: root/src/math/function.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/function.rs
parent1c5233b185e52d42c7878ac8b6cf046a5bb54a09 (diff)
add function_cache for performence gain
Diffstat (limited to 'src/math/function.rs')
-rw-r--r--src/math/function.rs2
1 files changed, 2 insertions, 0 deletions
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<Expression>),
ValueArgument(Vec<Complex>),
}
+#[derive(PartialEq, Eq, Hash, Clone)]
pub struct FunctionArgument {
args: FunctionArgumentType,
len: usize,