Skip to main content

Powi

Trait Powi 

Source
pub trait Powi {
    // Required method
    fn powi(self, exp: i32) -> Self;
}
Expand description

Method for raising a number by a signed integer exponent.

Required Methods§

Source

fn powi(self, exp: i32) -> Self

Return self raised to the power of exp.

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.

Implementations on Foreign Types§

Source§

impl Powi for f32

Available on crate feature std, or non-crate feature libm only.
Source§

fn powi(self, exp: i32) -> f32

Source§

impl Powi for f64

Available on crate feature std, or non-crate feature libm only.
Source§

fn powi(self, exp: i32) -> f64

Implementors§