diff options
Diffstat (limited to 'src/types/operator.rs')
-rw-r--r-- | src/types/operator.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/types/operator.rs b/src/types/operator.rs index d5b5e94..da4dfb4 100644 --- a/src/types/operator.rs +++ b/src/types/operator.rs @@ -20,6 +20,7 @@ pub enum Operator { BitNot, Length, Tally, + Absolute, } impl Operator { @@ -59,6 +60,7 @@ impl Operator { "<not>" => Some(Operator::BitNot), "<len>" => Some(Operator::Length), "<tal>" => Some(Operator::Tally), + "<abs>" => Some(Operator::Absolute), _ => None, } } @@ -87,6 +89,7 @@ impl std::fmt::Display for Operator { Operator::BitNot => "<not>", Operator::Length => "<len>", Operator::Tally => "<tal>", + Operator::Absolute => "<abs>", }; write!(f, "{string}") } |