diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-01-22 17:16:42 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-01-22 17:16:42 +0100 |
| commit | ac788f2082711161ec8208eede04d9a2bae02241 (patch) | |
| tree | b139e41d327af906163c0b177d402b855c04507e /src/eval/value.rs | |
| parent | 0de4f3ed7bb20a94fd58f93b0793d3b5a8e13972 (diff) | |
Many more expressions 🥗
Boolean, equality, comparison and assignment expression parsing and evaluation.
Diffstat (limited to 'src/eval/value.rs')
| -rw-r--r-- | src/eval/value.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/eval/value.rs b/src/eval/value.rs index 20cc457c..6fa70206 100644 --- a/src/eval/value.rs +++ b/src/eval/value.rs @@ -77,18 +77,6 @@ impl Value { Self::Error => "error", } } - - /// Whether the value is numeric. - pub fn is_numeric(&self) -> bool { - matches!(self, - Value::Int(_) - | Value::Float(_) - | Value::Length(_) - | Value::Angle(_) - | Value::Relative(_) - | Value::Linear(_) - ) - } } impl Eval for &Value { |
