pub trait AbsChecked {
    type Output;
    // Required method
    fn abs_checked(self) -> Self::Output;
}Expand description
Unary operator for retrieving the absolute value, enforcing an overflow never occurs.
pub trait AbsChecked {
    type Output;
    // Required method
    fn abs_checked(self) -> Self::Output;
}Unary operator for retrieving the absolute value, enforcing an overflow never occurs.