Indicates whether interval arithmetic is supported for the given operator.
(op: &Operator)
| 74 | |
| 75 | /// Indicates whether interval arithmetic is supported for the given operator. |
| 76 | pub fn is_operator_supported(op: &Operator) -> bool { |
| 77 | matches!( |
| 78 | op, |
| 79 | &Operator::Plus |
| 80 | | &Operator::Minus |
| 81 | | &Operator::And |
| 82 | | &Operator::Gt |
| 83 | | &Operator::GtEq |
| 84 | | &Operator::Lt |
| 85 | | &Operator::LtEq |
| 86 | | &Operator::Eq |
| 87 | | &Operator::Multiply |
| 88 | | &Operator::Divide |
| 89 | ) |
| 90 | } |
| 91 | |
| 92 | /// Indicates whether interval arithmetic is supported for the given data type. |
| 93 | pub fn is_datatype_supported(data_type: &DataType) -> bool { |
no outgoing calls
no test coverage detected
searching dependent graphs…