Trait overflower_support::RemPanic [] [src]

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

Get the remainder of dividing one value by another, panicking on overflow

This does the same as the std::ops::Rem trait for all non-integer types. It is specialized for integer types to panic on over- or underflow.

Associated Types

The output type of the remainder operation

Required Methods

divide two values and get the remainder, panicking on overflow

Implementors