OverflowingSub

Performs subtraction with a flag for overflow.

Fully qualified path: core::num::traits::ops::overflowing::OverflowingSub

pub trait OverflowingSub<T>

Trait functions

overflowing_sub

Returns a tuple of the difference along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then the wrapped value is returned.

Fully qualified path: core::num::traits::ops::overflowing::OverflowingSub::overflowing_sub

fn overflowing_sub(self: T, v: T) -> (T, bool)