Trait snarkvm_circuit::environment::prelude::PowChecked
pub trait PowChecked<Rhs = Self>where
Rhs: ?Sized,{
type Output;
// Required method
fn pow_checked(&self, rhs: &Rhs) -> Self::Output;
}
Expand description
Binary operator for exponentiating two values, enforcing an overflow never occurs.
Required Associated Types§
type Output
Required Methods§
fn pow_checked(&self, rhs: &Rhs) -> Self::Output
Trait Implementations§
§impl<E, I, M> Metrics<dyn PowChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>where
E: Environment,
I: IntegerType,
M: Magnitude,
impl<E, I, M> Metrics<dyn PowChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>where E: Environment, I: IntegerType, M: Magnitude,
§impl<E, I, M> OutputMode<dyn PowChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>where
E: Environment,
I: IntegerType,
M: Magnitude,
impl<E, I, M> OutputMode<dyn PowChecked<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>>)
§fn output_mode(
case: &<Integer<E, I> as OutputMode<dyn PowChecked<Integer<E, M>, Output = Integer<E, I>>>>::Case
) -> Mode
fn output_mode( case: &<Integer<E, I> as OutputMode<dyn PowChecked<Integer<E, M>, Output = Integer<E, I>>>>::Case ) -> Mode
Returns the mode of the output.
Implementations on Foreign Types§
§impl<E, I, M> PowChecked<Integer<E, M>> for Integer<E, I>where
E: Environment,
I: IntegerType,
M: Magnitude,
impl<E, I, M> PowChecked<Integer<E, M>> for Integer<E, I>where E: Environment, I: IntegerType, M: Magnitude,
§fn pow_checked(
&self,
other: &Integer<E, M>
) -> <Integer<E, I> as PowChecked<Integer<E, M>>>::Output
fn pow_checked( &self, other: &Integer<E, M> ) -> <Integer<E, I> as PowChecked<Integer<E, M>>>::Output
Returns the power
of self
to the power of other
.