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.
pub trait CheckedAbs {
type Output;
// Required method
fn checked_abs(self) -> Option<Self::Output>;
}
Takes the absolute valie of a number, returning None
if the result is not representable.