Get the string representation of this operator
(&self)
| 222 | impl ComparisonOp { |
| 223 | /// Get the string representation of this operator |
| 224 | pub fn as_str(&self) -> &'static str { |
| 225 | match self { |
| 226 | ComparisonOp::Less => "<", |
| 227 | ComparisonOp::LessEqual => "<=", |
| 228 | ComparisonOp::Greater => ">", |
| 229 | ComparisonOp::GreaterEqual => ">=", |
| 230 | ComparisonOp::Equal => "==", |
| 231 | ComparisonOp::NotEqual => "!=", |
| 232 | } |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | impl ErrorReport { |
no outgoing calls