pub trait PyMod<Rhs> {
type Output;
// Required method
fn pymod(self, rhs: Rhs) -> Self::Output;
}Expand description
A trait for modular arithmetic; the algorithm is based on the Python % operator which
uses the sign of the denominator rather than the numerator.