pub trait OverflowingSub<RHS = Self> {
    type Output;

    fn overflowing_sub(self, other: RHS) -> (Self::Output, bool);
}
Expand description

Subtracts two numbers.

Returns a tuple of the sum 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

This is a wrapper over the overflowing_sub functions in the standard library, for example this one.

This is a wrapper over the overflowing_sub functions in the standard library, for example this one.

This is a wrapper over the overflowing_sub functions in the standard library, for example this one.

This is a wrapper over the overflowing_sub functions in the standard library, for example this one.

This is a wrapper over the overflowing_sub functions in the standard library, for example this one.

This is a wrapper over the overflowing_sub functions in the standard library, for example this one.

This is a wrapper over the overflowing_sub functions in the standard library, for example this one.

This is a wrapper over the overflowing_sub functions in the standard library, for example this one.

This is a wrapper over the overflowing_sub functions in the standard library, for example this one.

This is a wrapper over the overflowing_sub functions in the standard library, for example this one.

This is a wrapper over the overflowing_sub functions in the standard library, for example this one.

This is a wrapper over the overflowing_sub functions in the standard library, for example this one.

Implementors