Method
try_map_expr
(self, f: impl FnOnce(Expr) -> Result<Expr>)
Source from the content-addressed store, hash-verified
| 752 | |
| 753 | #[doc(hidden)] |
| 754 | pub fn try_map_expr(self, f: impl FnOnce(Expr) -> Result<Expr>) -> Result<Expr> { |
| 755 | let Alias { |
| 756 | expr, |
| 757 | relation, |
| 758 | name, |
| 759 | metadata, |
| 760 | } = self; |
| 761 | Ok(Expr::Alias(Alias { |
| 762 | expr: Box::new(f(*expr)?), |
| 763 | relation, |
| 764 | name, |
| 765 | metadata, |
| 766 | })) |
| 767 | } |
| 768 | } |
| 769 | |
| 770 | /// Binary expression for [`Expr::BinaryExpr`] |
Callers
nothing calls this directly
Tested by
no test coverage detected