Builds an operation that takes one argument and an order_by.
(f: F)
| 279 | |
| 280 | /// Builds an operation that takes one argument and an order_by. |
| 281 | fn unary_ordered<F>(f: F) -> Operation<R> |
| 282 | where |
| 283 | F: Fn(&ExprContext, HirScalarExpr, Vec<ColumnOrder>) -> Result<R, PlanError> |
| 284 | + Send |
| 285 | + Sync |
| 286 | + 'static, |
| 287 | { |
| 288 | Self::new(move |ecx, cexprs, params, order_by| { |
| 289 | let exprs = coerce_args_to_types(ecx, cexprs, params)?; |
| 290 | f(ecx, exprs.into_element(), order_by) |
| 291 | }) |
| 292 | } |
| 293 | |
| 294 | /// Builds an operation that takes two arguments. |
| 295 | fn binary<F>(f: F) -> Operation<R> |
nothing calls this directly
no test coverage detected