diesel::sql_types::ops

Trait Div

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

Represents SQL types which can be divided.

Required Associated Types§

Source

type Rhs: SqlType

The SQL type which this one can be divided by

Source

type Output: SqlType

The SQL type of the result of dividing Self by Rhs

Implementors§

Source§

impl Div for BigInt

Source§

impl Div for Double

Source§

impl Div for Float

Source§

impl Div for Integer

Source§

impl Div for Interval

Source§

impl Div for Numeric

Source§

impl Div for SmallInt

Source§

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

Source§

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

Source§

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

Source§

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

Available on crate feature mysql_backend only.
Source§

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

Source§

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