diesel::sql_types::ops

Trait Sub

Source
pub trait Sub {
    type Rhs: SqlType;
    type Output: SqlType;
}
Expand description

Represents SQL types which can be subtracted.

Required Associated Types§

Source

type Rhs: SqlType

The SQL type which can be subtracted from this one

Source

type Output: SqlType

The SQL type of the result of subtracting Rhs from Self

Implementors§

Source§

impl Sub for BigInt

Source§

impl Sub for Cidr

Available on crate feature postgres_backend only.
Source§

impl Sub for Date

Source§

impl Sub for Double

Source§

impl Sub for Float

Source§

impl Sub for Inet

Available on crate feature postgres_backend only.
Source§

impl Sub for Integer

Source§

impl Sub for Interval

Source§

impl Sub for Numeric

Source§

impl Sub for SmallInt

Source§

impl Sub for Time

Source§

impl Sub for Timestamp

Source§

impl Sub for Timestamptz

Available on crate feature postgres_backend only.
Source§

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

Source§

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

Source§

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

Source§

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

Available on crate feature mysql_backend only.
Source§

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

Source§

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