Trait diesel::types::ops::Div
[−]
[src]
pub trait Div { type Rhs; type Output; }
Represents SQL types which can be divided.
Similar to std::ops::Div
, but this only includes information about the SQL types that will
result from the operation. Unlike std::ops::Div
, the right side is an associated type rather
than a type parameter. This means that a given SQL type can only be divided by one other SQL
type. 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 one can be divided by
type Output
The SQL type of the result of dividing Self
by Rhs
Implementors
impl Div for SmallInt type Rhs = SmallInt; type Output = SmallInt;
impl Div for Nullable<SmallInt> type Rhs = Nullable<SmallInt>; type Output = Nullable<SmallInt>;
impl Div for Integer type Rhs = Integer; type Output = Integer;
impl Div for Nullable<Integer> type Rhs = Nullable<Integer>; type Output = Nullable<Integer>;
impl Div for BigInt type Rhs = BigInt; type Output = BigInt;
impl Div for Nullable<BigInt> type Rhs = Nullable<BigInt>; type Output = Nullable<BigInt>;
impl Div for Float type Rhs = Float; type Output = Float;
impl Div for Nullable<Float> type Rhs = Nullable<Float>; type Output = Nullable<Float>;
impl Div for Double type Rhs = Double; type Output = Double;
impl Div for Nullable<Double> type Rhs = Nullable<Double>; type Output = Nullable<Double>;
impl Div for Numeric type Rhs = Numeric; type Output = Numeric;
impl Div for Nullable<Numeric> type Rhs = Nullable<Numeric>; type Output = Nullable<Numeric>;