cosmic::cosmic_theme::palette::num

Trait Powu

Source
pub trait Powu {
    // Required method
    fn powu(self, exp: u32) -> Self;
}
Expand description

Method for raising a number by a n unsigned integer exponent.

Required Methods§

Source

fn powu(self, exp: u32) -> 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 Powu for f32

Source§

fn powu(self, exp: u32) -> f32

Source§

impl Powu for f64

Source§

fn powu(self, exp: u32) -> f64

Source§

impl Powu for u8

Source§

fn powu(self, exp: u32) -> u8

Source§

impl Powu for u16

Source§

fn powu(self, exp: u32) -> u16

Source§

impl Powu for u32

Source§

fn powu(self, exp: u32) -> u32

Source§

impl Powu for u64

Source§

fn powu(self, exp: u32) -> u64

Source§

impl Powu for u128

Source§

fn powu(self, exp: u32) -> u128

Implementors§