Trait diesel::types::ops::Mul
[−]
[src]
pub trait Mul { type Rhs; type Output; }
Represents SQL types which can be multiplied.
Similar to std::ops::Mul
, but this only includes information about the SQL types that will
result from the operation. Unlike std::ops::Mul
, the right side is an associated type rather
than a type parameter. This means that a given SQL type can only have one other SQL type
multiplied with it. The reason for this is that when the right side is a Rust value which
would be sent as a bind parameter, we need to know which type to use.
Associated Types
type Rhs
The SQL type which this can be multiplied by
type Output
The SQL type of the result of multiplying Self
by Rhs
Implementors
impl Mul for SmallInt
impl Mul for Nullable<SmallInt>
impl Mul for Integer
impl Mul for Nullable<Integer>
impl Mul for BigInt
impl Mul for Nullable<BigInt>
impl Mul for Float
impl Mul for Nullable<Float>
impl Mul for Double
impl Mul for Nullable<Double>
impl Mul for Numeric
impl Mul for Nullable<Numeric>