Trait Pow

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

Performs power (self ^ exp). Maps directly to the underlaying integer method.

§Panics

Panics if the calculation overflows.

Required Methods§

Source

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

performs power operation

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 Pow for i8

Source§

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

Source§

impl Pow for i16

Source§

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

Source§

impl Pow for i32

Source§

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

Source§

impl Pow for i64

Source§

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

Source§

impl Pow for i128

Source§

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

Source§

impl Pow for u8

Source§

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

Source§

impl Pow for u16

Source§

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

Source§

impl Pow for u32

Source§

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

Source§

impl Pow for u64

Source§

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

Source§

impl Pow for u128

Source§

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

Implementors§