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§

type Output

Required Methods§

fn abs_checked(self) -> Self::Output

Trait Implementations§

§

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

§

type Case = Mode

§

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

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

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

§

type Case = Mode

§

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

Returns the mode of the output.

Implementations on Foreign Types§

§

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

§

fn abs_checked(self) -> <Integer<E, I> as AbsChecked>::Output

Returns the absolute value of self.

§

type Output = Integer<E, I>

§

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

§

type Output = Integer<E, I>

§

fn abs_checked(self) -> <&Integer<E, I> as AbsChecked>::Output

§

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

§

type Output = Integer<E, I>

§

fn abs_checked(self) -> <Integer<E, I> as AbsChecked>::Output

Implementors§