Trait overflower_support::RemSaturate
[−]
[src]
pub trait RemSaturate<RHS = Self> { type Output; fn rem_saturate(self, rhs: RHS) -> Self::Output; }
Divide two values and get the remainder, saturating on overflow
This trait does the same as std::ops::Rem
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 remainder
Required Methods
fn rem_saturate(self, rhs: RHS) -> Self::Output
divide two values and get the remainder, saturate on overflow