Struct sql::func::Operation [−][src]
struct Operation<R>(Box<dyn Fn(&ExprContext<'_>, Vec<CoercibleScalarExpr>, &ParamList, Vec<ColumnOrder>) -> Result<R, PlanError> + Send + Sync>);
Expand description
Builds an expression that evaluates a scalar function on the provided input expressions.
Tuple Fields
0: Box<dyn Fn(&ExprContext<'_>, Vec<CoercibleScalarExpr>, &ParamList, Vec<ColumnOrder>) -> Result<R, PlanError> + Send + Sync>
Implementations
Builds a unary operation that simply returns its input.
fn new<F>(f: F) -> Operation<R> where
F: Fn(&ExprContext<'_>, Vec<CoercibleScalarExpr>, &ParamList, Vec<ColumnOrder>) -> Result<R, PlanError> + Send + Sync + 'static,
Builds an operation that takes no arguments.
fn unary<F>(f: F) -> Operation<R> where
F: Fn(&ExprContext<'_>, HirScalarExpr) -> Result<R, PlanError> + Send + Sync + 'static,
fn unary<F>(f: F) -> Operation<R> where
F: Fn(&ExprContext<'_>, HirScalarExpr) -> Result<R, PlanError> + Send + Sync + 'static,
Builds an operation that takes one argument.
fn unary_ordered<F>(f: F) -> Operation<R> where
F: Fn(&ExprContext<'_>, HirScalarExpr, Vec<ColumnOrder>) -> Result<R, PlanError> + Send + Sync + 'static,
fn unary_ordered<F>(f: F) -> Operation<R> where
F: Fn(&ExprContext<'_>, HirScalarExpr, Vec<ColumnOrder>) -> Result<R, PlanError> + Send + Sync + 'static,
Builds an operation that takes one argument and an order_by.
fn binary<F>(f: F) -> Operation<R> where
F: Fn(&ExprContext<'_>, HirScalarExpr, HirScalarExpr) -> Result<R, PlanError> + Send + Sync + 'static,
fn binary<F>(f: F) -> Operation<R> where
F: Fn(&ExprContext<'_>, HirScalarExpr, HirScalarExpr) -> Result<R, PlanError> + Send + Sync + 'static,
Builds an operation that takes two arguments.
fn binary_ordered<F>(f: F) -> Operation<R> where
F: Fn(&ExprContext<'_>, HirScalarExpr, HirScalarExpr, Vec<ColumnOrder>) -> Result<R, PlanError> + Send + Sync + 'static,
fn binary_ordered<F>(f: F) -> Operation<R> where
F: Fn(&ExprContext<'_>, HirScalarExpr, HirScalarExpr, Vec<ColumnOrder>) -> Result<R, PlanError> + Send + Sync + 'static,
Builds an operation that takes two arguments and an order_by.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<R> !RefUnwindSafe for Operation<R>
impl<R> !UnwindSafe for Operation<R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more