pub trait WrappingMulAssign<RHS = Self> {
    // Required method
    fn wrapping_mul_assign(&mut self, other: RHS);
}
Expand description

Multiplies a number by another number in place, wrapping around at the boundary of the type.

Required Methods§

source

fn wrapping_mul_assign(&mut self, other: RHS)

Implementations on Foreign Types§

source§

impl WrappingMulAssign for i8

source§

fn wrapping_mul_assign(&mut self, other: i8)

Adds a number to another number in place, wrapping around at the boundary of the type.

$x \gets z$, where $z \equiv xy \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingMulAssign for i16

source§

fn wrapping_mul_assign(&mut self, other: i16)

Adds a number to another number in place, wrapping around at the boundary of the type.

$x \gets z$, where $z \equiv xy \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingMulAssign for i32

source§

fn wrapping_mul_assign(&mut self, other: i32)

Adds a number to another number in place, wrapping around at the boundary of the type.

$x \gets z$, where $z \equiv xy \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingMulAssign for i64

source§

fn wrapping_mul_assign(&mut self, other: i64)

Adds a number to another number in place, wrapping around at the boundary of the type.

$x \gets z$, where $z \equiv xy \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingMulAssign for i128

source§

fn wrapping_mul_assign(&mut self, other: i128)

Adds a number to another number in place, wrapping around at the boundary of the type.

$x \gets z$, where $z \equiv xy \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingMulAssign for isize

source§

fn wrapping_mul_assign(&mut self, other: isize)

Adds a number to another number in place, wrapping around at the boundary of the type.

$x \gets z$, where $z \equiv xy \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingMulAssign for u8

source§

fn wrapping_mul_assign(&mut self, other: u8)

Adds a number to another number in place, wrapping around at the boundary of the type.

$x \gets z$, where $z \equiv xy \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingMulAssign for u16

source§

fn wrapping_mul_assign(&mut self, other: u16)

Adds a number to another number in place, wrapping around at the boundary of the type.

$x \gets z$, where $z \equiv xy \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingMulAssign for u32

source§

fn wrapping_mul_assign(&mut self, other: u32)

Adds a number to another number in place, wrapping around at the boundary of the type.

$x \gets z$, where $z \equiv xy \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingMulAssign for u64

source§

fn wrapping_mul_assign(&mut self, other: u64)

Adds a number to another number in place, wrapping around at the boundary of the type.

$x \gets z$, where $z \equiv xy \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingMulAssign for u128

source§

fn wrapping_mul_assign(&mut self, other: u128)

Adds a number to another number in place, wrapping around at the boundary of the type.

$x \gets z$, where $z \equiv xy \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingMulAssign for usize

source§

fn wrapping_mul_assign(&mut self, other: usize)

Adds a number to another number in place, wrapping around at the boundary of the type.

$x \gets z$, where $z \equiv xy \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Implementors§