Trait diesel::types::ops::Add [] [src]

pub trait Add {
    type Rhs;
    type Output;
}

Represents SQL types which can be added.

Similar to std::ops::Add, but this only includes information about the SQL types that will result from the operation. Unlike std::ops::Add, 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 added to 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

The SQL type which can be added to this one

The SQL type of the result of adding Rhs to Self

Implementors