Module ops

Source

Traits§

CheckedAdd
A more general version of num_traits::CheckedAdd that allows Rhs and Output to be different.
IsNegative
A simplified version of num_traits::Signed. Unlike Signed::is_negative or f64::is_sign_negative, this returns false for -0.0 to keep consistency among integers, decimals and floats.