Trait overflower_support::DivPanic [] [src]

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

Divide two values, panicking on overflow

This does the same as the std::ops::Div 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 multiplication

Required Methods

divide two values, panicking on overflow

Implementors