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
type Output
The output type of the multiplication
Required Methods
Implementors
impl<T, R> MulPanic<R> for T where
T: Mul<R>,impl MulPanic<u8> for u8
impl MulPanic<u16> for u16
impl MulPanic<u32> for u32
impl MulPanic<u64> for u64
impl MulPanic<usize> for usize
impl MulPanic<i8> for i8
impl MulPanic<i16> for i16
impl MulPanic<i32> for i32
impl MulPanic<i64> for i64
impl MulPanic<isize> for isize