Trait num::traits::ops::wrapping::WrappingMul

source ·
pub trait WrappingMul: Sized + Mul<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: &i8) -> i8

source§

impl WrappingMul for i16

source§

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

source§

impl WrappingMul for i32

source§

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

source§

impl WrappingMul for i64

source§

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

source§

impl WrappingMul for i128

source§

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

source§

impl WrappingMul for isize

source§

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

source§

impl WrappingMul for u8

source§

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

source§

impl WrappingMul for u16

source§

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

source§

impl WrappingMul for u32

source§

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

source§

impl WrappingMul for u64

source§

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

source§

impl WrappingMul for u128

source§

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

source§

impl WrappingMul for usize

source§

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

source§

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

source§

fn wrapping_mul(&self, v: &Wrapping<T>) -> Wrapping<T>

Implementors§