Trait overflower_support::MulPanic [] [src]

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

Multiply two values, panicking on overflow

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

multiply two values, panicking on overflow

Implementors