Trait diesel::types::ops::Sub
[−]
[src]
pub trait Sub { type Rhs; type Output; }
Represents SQL types which can be subtracted.
Similar to std::ops::Sub
, but this only includes information about the SQL types that will
result from the operation. Unlike std::ops::Sub
, the right side is an associated type rather
than a type parameter. This means that a given SQL type can only have one other SQL type
subtracted from it. The reason for this is that when the right side is a Rust value which would
be sent as a bind parameter, we need to know which type to use.
Associated Types
type Rhs
The SQL type which can be subtracted from this one
type Output
The SQL type of the result of subtracting Rhs
from Self
Implementors
impl Sub for SmallInt
impl Sub for Nullable<SmallInt>
impl Sub for Integer
impl Sub for Nullable<Integer>
impl Sub for BigInt
impl Sub for Nullable<BigInt>
impl Sub for Float
impl Sub for Nullable<Float>
impl Sub for Double
impl Sub for Nullable<Double>
impl Sub for Numeric
impl Sub for Nullable<Numeric>
impl Sub for Time
impl Sub for Nullable<Time>
impl Sub for Date
impl Sub for Nullable<Date>
impl Sub for Timestamp
impl Sub for Nullable<Timestamp>