pub trait SaturatingAbs {
type Output;
// Required method
fn saturating_abs(self) -> Self::Output;
}
Expand description
Takes the absolute value of a number, saturating at the numeric bounds instead of overflowing.
This is a wrapper over the saturating_abs
functions in the standard library, for
example this one.
This is a wrapper over the saturating_abs
functions in the standard library, for
example this one.
This is a wrapper over the saturating_abs
functions in the standard library, for
example this one.
This is a wrapper over the saturating_abs
functions in the standard library, for
example this one.
This is a wrapper over the saturating_abs
functions in the standard library, for
example this one.
This is a wrapper over the saturating_abs
functions in the standard library, for
example this one.