pub fn mod_t<T>(a: T, b: T) -> Twhere
T: Zero + Copy + PartialOrd + Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + Div<T, Output = T>,
Expand description
Computes the remainder of a/b. Provides the behavior that the modulus of a negative number is always positive.