Return true if the operator is a numerical operator. For example, 'Binary(a, +, b)' would be a numerical expression. PostgresSQL concept:
(&self)
| 202 | /// For example, 'Binary(a, +, b)' would be a numerical expression. |
| 203 | /// PostgresSQL concept: <https://www.postgresql.org/docs/7.0/operators2198.htm> |
| 204 | pub fn is_numerical_operators(&self) -> bool { |
| 205 | matches!( |
| 206 | self, |
| 207 | Operator::Plus |
| 208 | | Operator::Minus |
| 209 | | Operator::Multiply |
| 210 | | Operator::Divide |
| 211 | | Operator::Modulo |
| 212 | ) |
| 213 | } |
| 214 | |
| 215 | /// Return true if the comparison operator can be used in interval arithmetic and constraint |
| 216 | /// propagation |
no outgoing calls
no test coverage detected