Trait WrappingSubAssign

Source
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§