pub trait StrictDiv: Sized + Div<Self> {
// Required method
fn strict_div(self, v: Self) -> <Self as Div<Self>>::Output;
}Expand description
Performs division that panics on overflow, even in release builds.
Required Methods§
Sourcefn strict_div(self, v: Self) -> <Self as Div<Self>>::Output
fn strict_div(self, v: Self) -> <Self as Div<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".