Trait overflower_support::RemWrap [] [src]

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

Divide two values and get the remainder, wrapping on overflow

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

Associated Types

The result type of the division remainder

Required Methods

divide two values and get the remainder, wrap on overflow

Implementors