Trait AbsWrapped

Source
pub trait AbsWrapped {
    type Output;

    // Required method
    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§

Required Methods§

Source

fn abs_wrapped(self) -> Self::Output

Trait Implementations§

Source§

impl<E, I> Metrics<dyn AbsWrapped<Output = Integer<E, I>>> for Integer<E, I>
where E: Environment, I: IntegerType,

Source§

type Case = Mode

Source§

fn count( case: &<Integer<E, I> as Metrics<dyn AbsWrapped<Output = Integer<E, I>>>>::Case, ) -> Count

Returns the number of constants, public inputs, private inputs, and constraints.
Source§

impl<E, I> OutputMode<dyn AbsWrapped<Output = Integer<E, I>>> for Integer<E, I>
where E: Environment, I: IntegerType,

Source§

type Case = Mode

Source§

fn output_mode( case: &<Integer<E, I> as OutputMode<dyn AbsWrapped<Output = Integer<E, I>>>>::Case, ) -> Mode

Returns the mode of the output.

Implementations on Foreign Types§

Source§

impl<E, I> AbsWrapped for Integer<E, I>
where E: Environment, I: IntegerType,

Source§

fn abs_wrapped(self) -> <Integer<E, I> as AbsWrapped>::Output

Returns the absolute value of self.

Source§

type Output = Integer<E, I>

Implementors§

Source§

impl<E, I> AbsWrapped for &snarkvm_circuit::modules::modules::integers::Integer<E, I>
where E: Environment, I: IntegerType,

Source§

type Output = Integer<E, I>

Source§

impl<E, I> AbsWrapped for snarkvm_circuit::modules::modules::integers::Integer<E, I>
where E: Environment, I: IntegerType,

Source§

type Output = Integer<E, I>