Trait snarkvm_console_network::PowWrapped
source · [−]pub trait PowWrapped<Rhs = Self> where
Rhs: ?Sized, {
type Output;
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
Required Methods
source
fn pow_wrapped(&self, rhs: &Rhs) -> Self::Output
Implementations on Foreign Types
impl<E, I, M> PowWrapped<Integer<E, M>> for Integer<E, I> where
E: Environment,
I: IntegerType,
M: Magnitude,
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
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
.