cosmic::cosmic_theme::palette::num

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

Source§

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

Source§

impl Powi for f64

Source§

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

Implementors§