pub trait OverflowingAbs {
    type Output;

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

Takes the absolute value of a number.

Returns a tuple of the result along with a boolean indicating whether an arithmetic overflow occured. 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_abs functions in the standard library, for example this one.

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

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

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

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

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

Implementors