diesel::sql_types::ops

Trait 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 Cidr

Available on crate feature postgres_backend only.
Source§

impl Add for Date

Source§

impl Add for Double

Source§

impl Add for Float

Source§

impl Add for Inet

Available on crate feature postgres_backend only.
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 Add for Timestamptz

Available on crate feature postgres_backend only.
Source§

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

Source§

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

Source§

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

Source§

impl<T> Add for Unsigned<T>
where T: Add,

Available on crate feature mysql_backend only.
Source§

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

Source§

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