Trait diesel::types::ops::Add
[−]
[src]
pub trait Add { type Rhs; type Output; }
Represents SQL types which can be added.
Similar to std::ops::Add
, but this only includes information about the SQL types that will
result from the operation. Unlike std::ops::Add
, 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 added
to 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 can be added to this one
type Output
The SQL type of the result of adding Rhs
to Self
Implementors
impl Add for SmallInt type Rhs = SmallInt; type Output = SmallInt;
impl Add for Nullable<SmallInt> type Rhs = Nullable<SmallInt>; type Output = Nullable<SmallInt>;
impl Add for Integer type Rhs = Integer; type Output = Integer;
impl Add for Nullable<Integer> type Rhs = Nullable<Integer>; type Output = Nullable<Integer>;
impl Add for BigInt type Rhs = BigInt; type Output = BigInt;
impl Add for Nullable<BigInt> type Rhs = Nullable<BigInt>; type Output = Nullable<BigInt>;
impl Add for Float type Rhs = Float; type Output = Float;
impl Add for Nullable<Float> type Rhs = Nullable<Float>; type Output = Nullable<Float>;
impl Add for Double type Rhs = Double; type Output = Double;
impl Add for Nullable<Double> type Rhs = Nullable<Double>; type Output = Nullable<Double>;
impl Add for Numeric type Rhs = Numeric; type Output = Numeric;
impl Add for Nullable<Numeric> type Rhs = Nullable<Numeric>; type Output = Nullable<Numeric>;
impl Add for Time type Rhs = Interval; type Output = Time;
impl Add for Nullable<Time> type Rhs = Nullable<Interval>; type Output = Nullable<Time>;
impl Add for Date type Rhs = Interval; type Output = Timestamp;
impl Add for Nullable<Date> type Rhs = Nullable<Interval>; type Output = Nullable<Timestamp>;
impl Add for Timestamp type Rhs = Interval; type Output = Timestamp;
impl Add for Nullable<Timestamp> type Rhs = Nullable<Interval>; type Output = Nullable<Timestamp>;