pub trait Modulus {
// Required method
fn modulus(self, divisor: Self) -> Self;
}
Expand description
Provides a trait for the canonical modulus operation since % is technically the remainder operation
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.