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.

Object Safety§

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§