pub trait OverflowingDivAssign<RHS = Self> {
    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

Implementations on Foreign Types

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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