Skip to main content
Performs addition with a flag for overflow.

Signature

Examples

Trait functions

overflowing_add

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

Signature