Trait diesel::sql_types::ops::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>