Macro diesel::numeric_expr
source · macro_rules! numeric_expr {
($tpe:ty) => { ... };
}
Expand description
Indicates that an expression allows all numeric operators. If you create new
SQL functions that return a numeric type, you should invoke this macro that
type. Unfortunately, Rust disallows us from automatically implementing Add
for types which implement Expression
, under its orphan rules.