Trait diesel::sql_types::ops::Add

source ·
pub trait Add {
    type Rhs: SqlType;
    type Output: SqlType;
}
Expand description

Represents SQL types which can be added.

Required Associated Types§

source

type Rhs: SqlType

The SQL type which can be added to this one

source

type Output: SqlType

The SQL type of the result of adding Rhs to Self

Implementors§

source§

impl Add for BigInt

source§

impl Add for Date

source§

impl Add for Double

source§

impl Add for Float

§

type Rhs = Float

§

type Output = Float

source§

impl Add for Integer

source§

impl Add for Interval

source§

impl Add for Numeric

source§

impl Add for SmallInt

source§

impl Add for Time

source§

impl Add for Timestamp

source§

impl<T> Add for Nullable<T>where T: Add + SqlType<IsNull = NotNull>, T::Rhs: SqlType<IsNull = NotNull>, T::Output: SqlType<IsNull = NotNull>,

§

type Rhs = Nullable<<T as Add>::Rhs>

§

type Output = Nullable<<T as Add>::Output>