If self is a constant error, return the error, otherwise `None`. Looks behind `ArrangeBy`s.
(&self)
| 1119 | /// If self is a constant error, return the error, otherwise `None`. |
| 1120 | /// Looks behind `ArrangeBy`s. |
| 1121 | pub fn as_const_err(&self) -> Option<&EvalError> { |
| 1122 | match self { |
| 1123 | MirRelationExpr::Constant { rows: Err(e), .. } => Some(e), |
| 1124 | MirRelationExpr::ArrangeBy { input, .. } => input.as_const_err(), |
| 1125 | _ => None, |
| 1126 | } |
| 1127 | } |
| 1128 | |
| 1129 | /// Checks if `self` is the single element collection with no columns. |
| 1130 | pub fn is_constant_singleton(&self) -> bool { |