num_traits::ops::wrapping

Trait WrappingMul

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§