Trait cosmic::cosmic_theme::palette::num::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.

Object Safety§

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§