Pretty-print this [MirRelationExpr] to a string using a custom [ExplainConfig] and an optionally provided [ExprHumanizer]. This is intended for debugging and tests, not users.
(
&self,
config: &ExplainConfig,
humanizer: Option<&dyn ExprHumanizer>,
)
| 1497 | /// [ExplainConfig] and an optionally provided [ExprHumanizer]. |
| 1498 | /// This is intended for debugging and tests, not users. |
| 1499 | pub fn debug_explain( |
| 1500 | &self, |
| 1501 | config: &ExplainConfig, |
| 1502 | humanizer: Option<&dyn ExprHumanizer>, |
| 1503 | ) -> String { |
| 1504 | text_string_at(self, || PlanRenderingContext { |
| 1505 | indent: Indent::default(), |
| 1506 | humanizer: humanizer.unwrap_or(&DummyHumanizer), |
| 1507 | annotations: BTreeMap::default(), |
| 1508 | config, |
| 1509 | ambiguous_ids: BTreeSet::default(), |
| 1510 | }) |
| 1511 | } |
| 1512 | |
| 1513 | /// Take ownership of `self`, leaving an empty `MirRelationExpr::Constant` with the optionally |
| 1514 | /// given scalar types. The given scalar types should be `base_eq` with the types that `typ()` |