pub trait AbsSaturating {
    type Output;
    // Required method
    fn abs_saturating(self) -> Self::Output;
}Expand description
Unary operator for retrieving the absolute value, bounding the difference to MAX if an overflow occurs.
pub trait AbsSaturating {
    type Output;
    // Required method
    fn abs_saturating(self) -> Self::Output;
}Unary operator for retrieving the absolute value, bounding the difference to MAX if an overflow occurs.