Builds an operation that takes one argument.
(f: F)
| 271 | |
| 272 | /// Builds an operation that takes one argument. |
| 273 | fn unary<F>(f: F) -> Operation<R> |
| 274 | where |
| 275 | F: Fn(&ExprContext, HirScalarExpr) -> Result<R, PlanError> + Send + Sync + 'static, |
| 276 | { |
| 277 | Self::variadic(move |ecx, exprs| f(ecx, exprs.into_element())) |
| 278 | } |
| 279 | |
| 280 | /// Builds an operation that takes one argument and an order_by. |
| 281 | fn unary_ordered<F>(f: F) -> Operation<R> |
no test coverage detected