pub trait WrappingAddMulAssign<Y = Self, Z = Self> {
    // Required method
    fn wrapping_add_mul_assign(&mut self, y: Y, z: Z);
}
Expand description

Adds a number and the product of two other numbers, in place, wrapping around at the boundary of the type.

Required Methods§

source

fn wrapping_add_mul_assign(&mut self, y: Y, z: Z)

Implementations on Foreign Types§

source§

impl WrappingAddMulAssign for i8

source§

fn wrapping_add_mul_assign(&mut self, y: i8, z: i8)

Adds a number and the product of two other numbers in place, wrapping around at the boundary of the type.

$x \gets w$, where $w \equiv x + yz \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddMulAssign for i16

source§

fn wrapping_add_mul_assign(&mut self, y: i16, z: i16)

Adds a number and the product of two other numbers in place, wrapping around at the boundary of the type.

$x \gets w$, where $w \equiv x + yz \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddMulAssign for i32

source§

fn wrapping_add_mul_assign(&mut self, y: i32, z: i32)

Adds a number and the product of two other numbers in place, wrapping around at the boundary of the type.

$x \gets w$, where $w \equiv x + yz \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddMulAssign for i64

source§

fn wrapping_add_mul_assign(&mut self, y: i64, z: i64)

Adds a number and the product of two other numbers in place, wrapping around at the boundary of the type.

$x \gets w$, where $w \equiv x + yz \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddMulAssign for i128

source§

fn wrapping_add_mul_assign(&mut self, y: i128, z: i128)

Adds a number and the product of two other numbers in place, wrapping around at the boundary of the type.

$x \gets w$, where $w \equiv x + yz \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddMulAssign for isize

source§

fn wrapping_add_mul_assign(&mut self, y: isize, z: isize)

Adds a number and the product of two other numbers in place, wrapping around at the boundary of the type.

$x \gets w$, where $w \equiv x + yz \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddMulAssign for u8

source§

fn wrapping_add_mul_assign(&mut self, y: u8, z: u8)

Adds a number and the product of two other numbers in place, wrapping around at the boundary of the type.

$x \gets w$, where $w \equiv x + yz \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddMulAssign for u16

source§

fn wrapping_add_mul_assign(&mut self, y: u16, z: u16)

Adds a number and the product of two other numbers in place, wrapping around at the boundary of the type.

$x \gets w$, where $w \equiv x + yz \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddMulAssign for u32

source§

fn wrapping_add_mul_assign(&mut self, y: u32, z: u32)

Adds a number and the product of two other numbers in place, wrapping around at the boundary of the type.

$x \gets w$, where $w \equiv x + yz \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddMulAssign for u64

source§

fn wrapping_add_mul_assign(&mut self, y: u64, z: u64)

Adds a number and the product of two other numbers in place, wrapping around at the boundary of the type.

$x \gets w$, where $w \equiv x + yz \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddMulAssign for u128

source§

fn wrapping_add_mul_assign(&mut self, y: u128, z: u128)

Adds a number and the product of two other numbers in place, wrapping around at the boundary of the type.

$x \gets w$, where $w \equiv x + yz \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddMulAssign for usize

source§

fn wrapping_add_mul_assign(&mut self, y: usize, z: usize)

Adds a number and the product of two other numbers in place, wrapping around at the boundary of the type.

$x \gets w$, where $w \equiv x + yz \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Implementors§