pub trait StrictDiv: Sized {
type Output;
// Required method
fn strict_div(self, v: Self) -> Self::Output;
}Expand description
Performs division that panics on overflow, even in release builds.
Required Associated Types§
Required Methods§
Sourcefn strict_div(self, v: Self) -> Self::Output
fn strict_div(self, v: Self) -> Self::Output
Strict division. Computes self / v, panicking on overflow (only
possible for MIN / -1 on a signed type) or if v is zero.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".