Skip to main content

Pow

Trait Pow 

pub trait Pow<Exponent> {
    // Required method
    fn pow(&self, exponent: &Exponent) -> Self;
}
Expand description

Constant-time exponentiation.

Required Methods§

fn pow(&self, exponent: &Exponent) -> Self

Raises to the exponent power.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl<T, Exponent> Pow<Exponent> for T
where T: PowBoundedExp<Exponent>, Exponent: Bounded,