Skip to main content

Pow

Trait Pow 

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

Constant-time exponentiation.

Required Methods§

Source

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".

Implementors§

Source§

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