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

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

Subtracts a number by 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

Subtracts a number by the product of two other numbers.

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

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Subtracts a number by the product of two other numbers.

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

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Subtracts a number by the product of two other numbers.

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

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Subtracts a number by the product of two other numbers.

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

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Subtracts a number by the product of two other numbers.

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

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Subtracts a number by the product of two other numbers.

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

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Subtracts a number by 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.

Subtracts a number by 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.

Subtracts a number by 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.

Subtracts a number by 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.

Subtracts a number by 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.

Subtracts a number by 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