pub trait WrappingMul: Sized + Mul<Self, Output = Self> {
    // Required method
    fn wrapping_mul(&self, v: &Self) -> Self;
}
Expand description

Performs multiplication that wraps around on overflow.

Required Methods§

source

fn wrapping_mul(&self, v: &Self) -> Self

Wrapping (modular) multiplication. Computes self * other, wrapping around at the boundary of the type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WrappingMul for i8

source§

fn wrapping_mul(&self, v: &Self) -> Self

source§

impl WrappingMul for i16

source§

fn wrapping_mul(&self, v: &Self) -> Self

source§

impl WrappingMul for i32

source§

fn wrapping_mul(&self, v: &Self) -> Self

source§

impl WrappingMul for i64

source§

fn wrapping_mul(&self, v: &Self) -> Self

source§

impl WrappingMul for i128

source§

fn wrapping_mul(&self, v: &Self) -> Self

source§

impl WrappingMul for isize

source§

fn wrapping_mul(&self, v: &Self) -> Self

source§

impl WrappingMul for u8

source§

fn wrapping_mul(&self, v: &Self) -> Self

source§

impl WrappingMul for u16

source§

fn wrapping_mul(&self, v: &Self) -> Self

source§

impl WrappingMul for u32

source§

fn wrapping_mul(&self, v: &Self) -> Self

source§

impl WrappingMul for u64

source§

fn wrapping_mul(&self, v: &Self) -> Self

source§

impl WrappingMul for u128

source§

fn wrapping_mul(&self, v: &Self) -> Self

source§

impl WrappingMul for usize

source§

fn wrapping_mul(&self, v: &Self) -> Self

source§

impl<T: WrappingMul> WrappingMul for Wrapping<T>
where Wrapping<T>: Mul<Output = Wrapping<T>>,

source§

fn wrapping_mul(&self, v: &Self) -> Self

Implementors§