pub trait PyMod<Rhs = Self> {
type Output;
// Required method
fn pymod(self, rhs: Rhs) -> Self::Output;
}Expand description
PyMod is a modulo operator inspired by Python’s % operator, which handles negative
values differently than rust’s built-in % operator. Specifically, the sign of the result
will always match the sign of the divisor.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".