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

Divides 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_div_assign(&mut self, other: RHS) -> bool

Implementations on Foreign Types§

source§

impl OverflowingDivAssign for i8

source§

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

Divides 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. Overflow only occurs when Self is signed, self is Self::MIN, and other is -1. The “actual” result, -Self::MIN, can’t be represented and is wrapped back to Self::MIN.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OverflowingDivAssign for i16

source§

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

Divides 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. Overflow only occurs when Self is signed, self is Self::MIN, and other is -1. The “actual” result, -Self::MIN, can’t be represented and is wrapped back to Self::MIN.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OverflowingDivAssign for i32

source§

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

Divides 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. Overflow only occurs when Self is signed, self is Self::MIN, and other is -1. The “actual” result, -Self::MIN, can’t be represented and is wrapped back to Self::MIN.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OverflowingDivAssign for i64

source§

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

Divides 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. Overflow only occurs when Self is signed, self is Self::MIN, and other is -1. The “actual” result, -Self::MIN, can’t be represented and is wrapped back to Self::MIN.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OverflowingDivAssign for i128

source§

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

Divides 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. Overflow only occurs when Self is signed, self is Self::MIN, and other is -1. The “actual” result, -Self::MIN, can’t be represented and is wrapped back to Self::MIN.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OverflowingDivAssign for isize

source§

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

Divides 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. Overflow only occurs when Self is signed, self is Self::MIN, and other is -1. The “actual” result, -Self::MIN, can’t be represented and is wrapped back to Self::MIN.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OverflowingDivAssign for u8

source§

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

Divides 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. Overflow only occurs when Self is signed, self is Self::MIN, and other is -1. The “actual” result, -Self::MIN, can’t be represented and is wrapped back to Self::MIN.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OverflowingDivAssign for u16

source§

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

Divides 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. Overflow only occurs when Self is signed, self is Self::MIN, and other is -1. The “actual” result, -Self::MIN, can’t be represented and is wrapped back to Self::MIN.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OverflowingDivAssign for u32

source§

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

Divides 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. Overflow only occurs when Self is signed, self is Self::MIN, and other is -1. The “actual” result, -Self::MIN, can’t be represented and is wrapped back to Self::MIN.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OverflowingDivAssign for u64

source§

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

Divides 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. Overflow only occurs when Self is signed, self is Self::MIN, and other is -1. The “actual” result, -Self::MIN, can’t be represented and is wrapped back to Self::MIN.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OverflowingDivAssign for u128

source§

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

Divides 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. Overflow only occurs when Self is signed, self is Self::MIN, and other is -1. The “actual” result, -Self::MIN, can’t be represented and is wrapped back to Self::MIN.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl OverflowingDivAssign for usize

source§

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

Divides 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. Overflow only occurs when Self is signed, self is Self::MIN, and other is -1. The “actual” result, -Self::MIN, can’t be represented and is wrapped back to Self::MIN.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Implementors§