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

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

Required Methods§

source

fn wrapping_sub_assign(&mut self, other: RHS)

Implementations on Foreign Types§

source§

impl WrappingSubAssign for i8

source§

fn wrapping_sub_assign(&mut self, other: i8)

Subtracts a number by 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 WrappingSubAssign for i16

source§

fn wrapping_sub_assign(&mut self, other: i16)

Subtracts a number by 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 WrappingSubAssign for i32

source§

fn wrapping_sub_assign(&mut self, other: i32)

Subtracts a number by 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 WrappingSubAssign for i64

source§

fn wrapping_sub_assign(&mut self, other: i64)

Subtracts a number by 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 WrappingSubAssign for i128

source§

fn wrapping_sub_assign(&mut self, other: i128)

Subtracts a number by 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 WrappingSubAssign for isize

source§

fn wrapping_sub_assign(&mut self, other: isize)

Subtracts a number by 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 WrappingSubAssign for u8

source§

fn wrapping_sub_assign(&mut self, other: u8)

Subtracts a number by 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 WrappingSubAssign for u16

source§

fn wrapping_sub_assign(&mut self, other: u16)

Subtracts a number by 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 WrappingSubAssign for u32

source§

fn wrapping_sub_assign(&mut self, other: u32)

Subtracts a number by 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 WrappingSubAssign for u64

source§

fn wrapping_sub_assign(&mut self, other: u64)

Subtracts a number by 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 WrappingSubAssign for u128

source§

fn wrapping_sub_assign(&mut self, other: u128)

Subtracts a number by 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 WrappingSubAssign for usize

source§

fn wrapping_sub_assign(&mut self, other: usize)

Subtracts a number by 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§