pub trait ArithmeticOutput<Rhs: Numeric = Self>: Numeric {
type Output: Numeric;
}Expand description
Maps the left-hand numeric type to the result type of an arithmetic
operation (+, -, *, /, %).
The output follows SQL’s type promotion rules: narrower types widen to
wider types (e.g. Int2 + Int8 → Int8, Int4 + Float8 → Float8).
Within the same width, the left operand’s type is preserved.
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.