pub trait OverflowingAddMul<Y = Self, Z = Self> {
    type Output;

    fn overflowing_add_mul(self, y: Y, z: Z) -> (Self::Output, bool);
}
Expand description

Adds a number and the product of two other numbers.

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.

Required Associated Types

Required Methods

Implementations on Foreign Types

Adds a number and the product of two other numbers.

Returns a tuple containing the result and a boolean indicating whether an arithmetic overflow occured. If an overflow occurred, then the wrapped value is returned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Adds a number and the product of two other numbers.

Returns a tuple containing the result and a boolean indicating whether an arithmetic overflow occured. If an overflow occurred, then the wrapped value is returned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Adds a number and the product of two other numbers.

Returns a tuple containing the result and a boolean indicating whether an arithmetic overflow occured. If an overflow occurred, then the wrapped value is returned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Adds a number and the product of two other numbers.

Returns a tuple containing the result and a boolean indicating whether an arithmetic overflow occured. If an overflow occurred, then the wrapped value is returned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Adds a number and the product of two other numbers.

Returns a tuple containing the result and a boolean indicating whether an arithmetic overflow occured. If an overflow occurred, then the wrapped value is returned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Adds a number and the product of two other numbers.

Returns a tuple containing the result and a boolean indicating whether an arithmetic overflow occured. If an overflow occurred, then the wrapped value is returned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Adds a number and the product of two other numbers.

Returns a tuple containing the result and a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is returned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Adds a number and the product of two other numbers.

Returns a tuple containing the result and a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is returned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Adds a number and the product of two other numbers.

Returns a tuple containing the result and a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is returned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Adds a number and the product of two other numbers.

Returns a tuple containing the result and a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is returned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Adds a number and the product of two other numbers.

Returns a tuple containing the result and a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is returned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Adds a number and the product of two other numbers.

Returns a tuple containing the result and a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is returned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Implementors