pub trait OverflowingNeg {
    type Output;

    fn overflowing_neg(self) -> (Self::Output, bool);
}
Expand description

Negates a number.

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_neg functions in the standard library, for example this one.

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

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

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

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

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

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

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

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

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

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

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

Implementors