Pow

Trait Pow 

Source
pub trait Pow<T> {
    type Output;

    // Required method
    fn pow(&self, exp: T) -> Result<Self::Output, MathError>;
}
Expand description

Is implemented by basic types to raise a value to the power of another.

Required Associated Types§

Required Methods§

Source

fn pow(&self, exp: T) -> Result<Self::Output, MathError>

Raises the value of self to the power of an exp.

Parameters:

  • exp: specifies the exponent to which the value is raised

Returns the value of self powered by exp as a new Output instance.

Implementors§

Source§

impl<Integer: Into<Z>> Pow<Integer> for Z

Source§

impl<Integer: Into<Z>> Pow<Integer> for Zq

Source§

impl<Integer: Into<Z>> Pow<Integer> for Q