Trait snarkvm_circuit::prelude::AbsWrapped
[−]pub trait AbsWrapped {
type Output;
fn abs_wrapped(self) -> Self::Output;
}
Expand description
Unary operator for retrieving the absolute value, wrapping the result if an overflow occurs.
Required Associated Types
type Output
Required Methods
fn abs_wrapped(self) -> Self::Output
Trait Implementations
impl<E, I> Metrics<dyn AbsWrapped<Output = Integer<E, I>> + 'static> for Integer<E, I> where
E: Environment,
I: IntegerType,
impl<E, I> Metrics<dyn AbsWrapped<Output = Integer<E, I>> + 'static> for Integer<E, I> where
E: Environment,
I: IntegerType,
impl<E, I> OutputMode<dyn AbsWrapped<Output = Integer<E, I>> + 'static> for Integer<E, I> where
E: Environment,
I: IntegerType,
impl<E, I> OutputMode<dyn AbsWrapped<Output = Integer<E, I>> + 'static> for Integer<E, I> where
E: Environment,
I: IntegerType,
type Case = Mode
fn output_mode(
case: &<Integer<E, I> as OutputMode<dyn AbsWrapped<Output = Integer<E, I>> + 'static>>::Case
) -> Mode
fn output_mode(
case: &<Integer<E, I> as OutputMode<dyn AbsWrapped<Output = Integer<E, I>> + 'static>>::Case
) -> Mode
Returns the mode of the output.
Implementations on Foreign Types
impl<E, I> AbsWrapped for Integer<E, I> where
E: Environment,
I: IntegerType,
impl<E, I> AbsWrapped for Integer<E, I> where
E: Environment,
I: IntegerType,
fn abs_wrapped(self) -> <Integer<E, I> as AbsWrapped>::Output
fn abs_wrapped(self) -> <Integer<E, I> as AbsWrapped>::Output
Returns the absolute value
of self
.