Trait OverflowingMulAssign

Source
pub trait OverflowingMulAssign<RHS = Self> {
    // Required method
    fn overflowing_mul_assign(&mut self, other: RHS) -> bool;
}
Expand description

Multiplies a number by another number in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped number is assigned.

Required Methods§

Source

fn overflowing_mul_assign(&mut self, other: RHS) -> bool

Implementations on Foreign Types§

Source§

impl OverflowingMulAssign for i8

Source§

fn overflowing_mul_assign(&mut self, other: i8) -> bool

Multiplies a number by another number, in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

impl OverflowingMulAssign for i16

Source§

fn overflowing_mul_assign(&mut self, other: i16) -> bool

Multiplies a number by another number, in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

impl OverflowingMulAssign for i32

Source§

fn overflowing_mul_assign(&mut self, other: i32) -> bool

Multiplies a number by another number, in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

impl OverflowingMulAssign for i64

Source§

fn overflowing_mul_assign(&mut self, other: i64) -> bool

Multiplies a number by another number, in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

impl OverflowingMulAssign for i128

Source§

fn overflowing_mul_assign(&mut self, other: i128) -> bool

Multiplies a number by another number, in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

impl OverflowingMulAssign for isize

Source§

fn overflowing_mul_assign(&mut self, other: isize) -> bool

Multiplies a number by another number, in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

impl OverflowingMulAssign for u8

Source§

fn overflowing_mul_assign(&mut self, other: u8) -> bool

Multiplies a number by another number, in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

impl OverflowingMulAssign for u16

Source§

fn overflowing_mul_assign(&mut self, other: u16) -> bool

Multiplies a number by another number, in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

impl OverflowingMulAssign for u32

Source§

fn overflowing_mul_assign(&mut self, other: u32) -> bool

Multiplies a number by another number, in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

impl OverflowingMulAssign for u64

Source§

fn overflowing_mul_assign(&mut self, other: u64) -> bool

Multiplies a number by another number, in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

impl OverflowingMulAssign for u128

Source§

fn overflowing_mul_assign(&mut self, other: u128) -> bool

Multiplies a number by another number, in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

impl OverflowingMulAssign for usize

Source§

fn overflowing_mul_assign(&mut self, other: usize) -> bool

Multiplies a number by another number, in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Implementors§