Trait overflower_support::DivSaturate
[−]
[src]
pub trait DivSaturate<RHS = Self> { type Output; fn div_saturate(self, rhs: RHS) -> Self::Output; }
Divide two values, saturating on overflow
This trait does the same as std::ops::Div
for most values.
it is specialized for integer types to saturate on over- or underflow.
Associated Types
type Output
The result type of the division
Required Methods
fn div_saturate(self, rhs: RHS) -> Self::Output
divide two values, saturate on overflow