Trait overflower_support::MulWrap
[−]
[src]
pub trait MulWrap<RHS = Self> { type Output; fn mul_wrap(self, rhs: RHS) -> Self::Output; }
Multiply two values, wrapping on overflow
This trait does the same as std::ops::Mul
for most values.
it is specialized for integer types to wrap on over- or underflow.
Associated Types
type Output
The result type of the multiplication
Required Methods
Implementors
impl<T, R> MulWrap<R> for T where
T: Mul<R>,impl MulWrap<u8> for u8
impl MulWrap<u16> for u16
impl MulWrap<u32> for u32
impl MulWrap<u64> for u64
impl MulWrap<usize> for usize
impl MulWrap<i8> for i8
impl MulWrap<i16> for i16
impl MulWrap<i32> for i32
impl MulWrap<i64> for i64
impl MulWrap<isize> for isize