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

The result type of the multiplication

Required Methods

multiply two values, wrap on overflow

Implementors