pub trait OverflowingAbs {
type Output;
// Required method
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.
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.