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.
Required Associated Types§
Required Methods§
fn abs_checked(self) -> Self::Output
Implementations on Foreign Types§
Source§impl<E, I> AbsChecked for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> AbsChecked for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn abs_checked(self) -> <Integer<E, I> as AbsChecked>::Output
fn abs_checked(self) -> <Integer<E, I> as AbsChecked>::Output
Returns the absolute value
of self
.