pub trait AbsMod<Rhs = Self> { type Output; // Required method fn absmod(&self, rhs: Rhs) -> Self::Output; }
This trait further generalizes PyMod by returning the absolute value of the result; dropping all signs in the process. This method is particularly useful when working in environments where the magnitude of the result is more important than the sign.