ufix

Trait UnsignedPow

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

Exponentiation.

Enables being generic over integers which can be exponentiated. Why must we do this, standard library?

Required Methods§

Source

fn unsigned_pow(self, exp: u32) -> Self

Raises self 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 UnsignedPow for i8

Source§

fn unsigned_pow(self, exp: u32) -> Self

Source§

impl UnsignedPow for i16

Source§

fn unsigned_pow(self, exp: u32) -> Self

Source§

impl UnsignedPow for i32

Source§

fn unsigned_pow(self, exp: u32) -> Self

Source§

impl UnsignedPow for i64

Source§

fn unsigned_pow(self, exp: u32) -> Self

Source§

impl UnsignedPow for isize

Source§

fn unsigned_pow(self, exp: u32) -> Self

Source§

impl UnsignedPow for u8

Source§

fn unsigned_pow(self, exp: u32) -> Self

Source§

impl UnsignedPow for u16

Source§

fn unsigned_pow(self, exp: u32) -> Self

Source§

impl UnsignedPow for u32

Source§

fn unsigned_pow(self, exp: u32) -> Self

Source§

impl UnsignedPow for u64

Source§

fn unsigned_pow(self, exp: u32) -> Self

Source§

impl UnsignedPow for usize

Source§

fn unsigned_pow(self, exp: u32) -> Self

Implementors§