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

§

type Rhs = Float

§

type Output = 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>,

§

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

§

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

source§

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

Available on crate feature mysql_backend only.
§

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

§

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