Trait CheckedPow

Source
pub trait CheckedPow: Sized {
    // Required method
    fn checked_pow(self, exp: u32) -> Option<Self>;
}
Expand description

Performs checked power. Maps directly to the integers checked_pow method. (i.e. u8::checked_pow) Consult the docs of the primitive methods to learn more.

Required Methods§

Source

fn checked_pow(self, exp: u32) -> Option<Self>

performs checked pow

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

Source§

fn checked_pow(self, exp: u32) -> Option<Self>

Source§

impl CheckedPow for i16

Source§

fn checked_pow(self, exp: u32) -> Option<Self>

Source§

impl CheckedPow for i32

Source§

fn checked_pow(self, exp: u32) -> Option<Self>

Source§

impl CheckedPow for i64

Source§

fn checked_pow(self, exp: u32) -> Option<Self>

Source§

impl CheckedPow for u8

Source§

fn checked_pow(self, exp: u32) -> Option<Self>

Source§

impl CheckedPow for u16

Source§

fn checked_pow(self, exp: u32) -> Option<Self>

Source§

impl CheckedPow for u32

Source§

fn checked_pow(self, exp: u32) -> Option<Self>

Source§

impl CheckedPow for u64

Source§

fn checked_pow(self, exp: u32) -> Option<Self>

Implementors§