Trait malachite_base::num::arithmetic::traits::WrappingMulAssign
source · [−]pub trait WrappingMulAssign<RHS = Self> {
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
fn wrapping_mul_assign(&mut self, other: RHS)
Implementations on Foreign Types
sourceimpl WrappingMulAssign<u8> for u8
impl WrappingMulAssign<u8> for u8
sourcefn wrapping_mul_assign(&mut self, other: u8)
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.
sourceimpl WrappingMulAssign<u16> for u16
impl WrappingMulAssign<u16> for u16
sourcefn wrapping_mul_assign(&mut self, other: u16)
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.
sourceimpl WrappingMulAssign<u32> for u32
impl WrappingMulAssign<u32> for u32
sourcefn wrapping_mul_assign(&mut self, other: u32)
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.
sourceimpl WrappingMulAssign<u64> for u64
impl WrappingMulAssign<u64> for u64
sourcefn wrapping_mul_assign(&mut self, other: u64)
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.
sourceimpl WrappingMulAssign<u128> for u128
impl WrappingMulAssign<u128> for u128
sourcefn wrapping_mul_assign(&mut self, other: u128)
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.
sourceimpl WrappingMulAssign<usize> for usize
impl WrappingMulAssign<usize> for usize
sourcefn wrapping_mul_assign(&mut self, other: usize)
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.
sourceimpl WrappingMulAssign<i8> for i8
impl WrappingMulAssign<i8> for i8
sourcefn wrapping_mul_assign(&mut self, other: i8)
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.
sourceimpl WrappingMulAssign<i16> for i16
impl WrappingMulAssign<i16> for i16
sourcefn wrapping_mul_assign(&mut self, other: i16)
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.
sourceimpl WrappingMulAssign<i32> for i32
impl WrappingMulAssign<i32> for i32
sourcefn wrapping_mul_assign(&mut self, other: i32)
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.
sourceimpl WrappingMulAssign<i64> for i64
impl WrappingMulAssign<i64> for i64
sourcefn wrapping_mul_assign(&mut self, other: i64)
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.
sourceimpl WrappingMulAssign<i128> for i128
impl WrappingMulAssign<i128> for i128
sourcefn wrapping_mul_assign(&mut self, other: i128)
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.
sourceimpl WrappingMulAssign<isize> for isize
impl WrappingMulAssign<isize> for isize
sourcefn wrapping_mul_assign(&mut self, other: isize)
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.