pub trait PowWrapped<Rhs = Self>where
    Rhs: ?Sized,{
    type Output;

    // Required method
    fn pow_wrapped(&self, rhs: &Rhs) -> Self::Output;
}
Expand description

Binary operator for exponentiating two values, wrapping the result if an overflow occurs.

Required Associated Types§

type Output

Required Methods§

fn pow_wrapped(&self, rhs: &Rhs) -> Self::Output

Trait Implementations§

source§

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

§

type Case = (Mode, Mode)

source§

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

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

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

§

type Case = (Mode, CircuitType<Integer<E, M>>)

source§

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

Returns the mode of the output.

Implementations on Foreign Types§

§

impl<E, I, M> PowWrapped<Integer<E, M>> for Integer<E, I>where E: Environment, I: IntegerType, M: Magnitude,

§

fn pow_wrapped( &self, other: &Integer<E, M> ) -> <Integer<E, I> as PowWrapped<Integer<E, M>>>::Output

Returns the power of self to the power of other.

§

type Output = Integer<E, I>

source§

impl<E, I, M> PowWrapped<Integer<E, M>> for Integer<E, I>where E: Environment, I: IntegerType, M: Magnitude,

§

type Output = Integer<E, I>

source§

fn pow_wrapped( &self, other: &Integer<E, M> ) -> <Integer<E, I> as PowWrapped<Integer<E, M>>>::Output

Implementors§