Trait overflower_support::DivWrap [] [src]

pub trait DivWrap<RHS = Self> {
    type Output;
    fn div_wrap(self, rhs: RHS) -> Self::Output;
}

Divide two values, wrapping on overflow

This trait does the same as std::ops::Div for most values. it is specialized for integer types to wrap on over- or underflow.

Associated Types

The result type of the division

Required Methods

divide two values, wrap on overflow

Implementors