Trait palette::num::Powf

source ·
pub trait Powf {
    // Required method
    fn powf(self, exp: Self) -> Self;
}
Expand description

Method for raising a number by a real number exponent.

The name “powf” is kept for familiarity, even though the exponent doesn’t have to be a floating point number.

Required Methods§

source

fn powf(self, exp: Self) -> Self

Return self raised to the power of exp.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Powf for f32

source§

fn powf(self, exp: Self) -> Self

source§

impl Powf for f64

source§

fn powf(self, exp: Self) -> Self

Implementors§