Trait ArithmeticOpWithCtx
tidb_query_expr::impl_arithmetic
pub trait ArithmeticOpWithCtx { type T: Evaluable + EvaluableRet; fn calc( ctx: &mut EvalContext, lhs: &Self::T, rhs: &Self::T ) -> Result<Option<Self::T>>; }
type T: Evaluable + EvaluableRet
fn calc( ctx: &mut EvalContext, lhs: &Self::T, rhs: &Self::T) -> Result<Option<Self::T>>
impl ArithmeticOpWithCtx for DecimalDivide
type T = Decimal
fn calc( ctx: &mut EvalContext, lhs: &Decimal, rhs: &Decimal) -> Result<Option<Decimal>>
impl ArithmeticOpWithCtx for DecimalMod
impl ArithmeticOpWithCtx for RealDivide
type T = Real
fn calc(ctx: &mut EvalContext, lhs: &Real, rhs: &Real) -> Result<Option<Real>>