pub trait OverflowingAddMulAssign<Y = Self, Z = Self> {
// Required method
fn overflowing_add_mul_assign(&mut self, y: Y, z: Z) -> bool;
}
Expand description
Adds a number and the product of two other numbers, in place.
Returns a tuple of the result along with a boolean indicating whether an arithmetic overflow
occurred. If an overflow occurred, then the wrapped number is returned.
Adds a number and the product of two other numbers, 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.
Adds a number and the product of two other numbers, 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.
Adds a number and the product of two other numbers, 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.
Adds a number and the product of two other numbers, 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.
Adds a number and the product of two other numbers, 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.
Adds a number and the product of two other numbers, 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.
Adds a number and the product of two other numbers, 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.
Adds a number and the product of two other numbers, 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.
Adds a number and the product of two other numbers, 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.
Adds a number and the product of two other numbers, 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.
Adds a number and the product of two other numbers, 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.
Adds a number and the product of two other numbers, 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.