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

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

Required Methods§

source

fn wrapping_add_assign(&mut self, other: RHS)

Implementations on Foreign Types§

source§

impl WrappingAddAssign for i8

source§

fn wrapping_add_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 x + y \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddAssign for i16

source§

fn wrapping_add_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 x + y \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddAssign for i32

source§

fn wrapping_add_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 x + y \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddAssign for i64

source§

fn wrapping_add_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 x + y \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddAssign for i128

source§

fn wrapping_add_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 x + y \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddAssign for isize

source§

fn wrapping_add_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 x + y \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddAssign for u8

source§

fn wrapping_add_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 x + y \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddAssign for u16

source§

fn wrapping_add_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 x + y \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddAssign for u32

source§

fn wrapping_add_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 x + y \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddAssign for u64

source§

fn wrapping_add_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 x + y \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddAssign for u128

source§

fn wrapping_add_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 x + y \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl WrappingAddAssign for usize

source§

fn wrapping_add_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 x + y \mod 2^W$ and $W$ is Self::WIDTH.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Implementors§