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

The result type of the division

Required Methods

divide two values, saturate on overflow

Implementors