Trait tidb_query_expr::impl_arithmetic::ArithmeticOp[][src]

pub trait ArithmeticOp {
    type T: Evaluable + EvaluableRet;
    fn calc(lhs: &Self::T, rhs: &Self::T) -> Result<Option<Self::T>>;
}

Associated Types

type T: Evaluable + EvaluableRet[src]

Loading content...

Required methods

fn calc(lhs: &Self::T, rhs: &Self::T) -> Result<Option<Self::T>>[src]

Loading content...

Implementors

impl ArithmeticOp for DecimalMinus[src]

type T = Decimal

impl ArithmeticOp for DecimalMultiply[src]

type T = Decimal

impl ArithmeticOp for DecimalPlus[src]

type T = Decimal

impl ArithmeticOp for IntDivideInt[src]

type T = Int

impl ArithmeticOp for IntDivideUint[src]

type T = Int

impl ArithmeticOp for IntIntMinus[src]

type T = Int

impl ArithmeticOp for IntIntMod[src]

type T = Int

impl ArithmeticOp for IntIntMultiply[src]

type T = Int

impl ArithmeticOp for IntIntPlus[src]

type T = Int

impl ArithmeticOp for IntUintMinus[src]

type T = Int

impl ArithmeticOp for IntUintMod[src]

type T = Int

impl ArithmeticOp for IntUintMultiply[src]

type T = Int

impl ArithmeticOp for IntUintPlus[src]

type T = Int

impl ArithmeticOp for RealMinus[src]

type T = Real

impl ArithmeticOp for RealMod[src]

type T = Real

impl ArithmeticOp for RealMultiply[src]

type T = Real

impl ArithmeticOp for RealPlus[src]

type T = Real

impl ArithmeticOp for UintDivideInt[src]

type T = Int

impl ArithmeticOp for UintDivideUint[src]

type T = Int

impl ArithmeticOp for UintIntMinus[src]

type T = Int

impl ArithmeticOp for UintIntMod[src]

type T = Int

impl ArithmeticOp for UintIntMultiply[src]

type T = Int

impl ArithmeticOp for UintIntPlus[src]

type T = Int

impl ArithmeticOp for UintUintMinus[src]

type T = Int

impl ArithmeticOp for UintUintMod[src]

type T = Int

impl ArithmeticOp for UintUintMultiply[src]

type T = Int

impl ArithmeticOp for UintUintPlus[src]

type T = Int

Loading content...