pub trait CheckedAbs {
type Output;
// Required method
fn checked_abs(self) -> Option<Self::Output>;
}
Expand description
Takes the absolute valie of a number, returning None
if the result is not representable.
This is a wrapper over the checked_abs
functions in the standard library, for
example this one.
This is a wrapper over the checked_abs
functions in the standard library, for
example this one.
This is a wrapper over the checked_abs
functions in the standard library, for
example this one.
This is a wrapper over the checked_abs
functions in the standard library, for
example this one.
This is a wrapper over the checked_abs
functions in the standard library, for
example this one.
This is a wrapper over the checked_abs
functions in the standard library, for
example this one.