Trait CheckedPow

Source
pub trait CheckedPow<RHS> {
    type Output;

    // Required method
    fn checked_pow(self, exp: RHS) -> Option<Self::Output>;
}
Expand description

Raises a number to a power, returning None if the result is not representable.

Required Associated Types§

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl CheckedPow<u64> for i8

Source§

fn checked_pow(self, exp: u64) -> Option<i8>

This is a wrapper over the checked_pow functions in the standard library, for example this one.

Source§

type Output = i8

Source§

impl CheckedPow<u64> for i16

Source§

fn checked_pow(self, exp: u64) -> Option<i16>

This is a wrapper over the checked_pow functions in the standard library, for example this one.

Source§

type Output = i16

Source§

impl CheckedPow<u64> for i32

Source§

fn checked_pow(self, exp: u64) -> Option<i32>

This is a wrapper over the checked_pow functions in the standard library, for example this one.

Source§

type Output = i32

Source§

impl CheckedPow<u64> for i64

Source§

fn checked_pow(self, exp: u64) -> Option<i64>

This is a wrapper over the checked_pow functions in the standard library, for example this one.

Source§

type Output = i64

Source§

impl CheckedPow<u64> for i128

Source§

fn checked_pow(self, exp: u64) -> Option<i128>

This is a wrapper over the checked_pow functions in the standard library, for example this one.

Source§

type Output = i128

Source§

impl CheckedPow<u64> for isize

Source§

fn checked_pow(self, exp: u64) -> Option<isize>

This is a wrapper over the checked_pow functions in the standard library, for example this one.

Source§

type Output = isize

Source§

impl CheckedPow<u64> for u8

Source§

fn checked_pow(self, exp: u64) -> Option<u8>

This is a wrapper over the checked_pow functions in the standard library, for example this one.

Source§

type Output = u8

Source§

impl CheckedPow<u64> for u16

Source§

fn checked_pow(self, exp: u64) -> Option<u16>

This is a wrapper over the checked_pow functions in the standard library, for example this one.

Source§

type Output = u16

Source§

impl CheckedPow<u64> for u32

Source§

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

This is a wrapper over the checked_pow functions in the standard library, for example this one.

Source§

type Output = u32

Source§

impl CheckedPow<u64> for u64

Source§

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

This is a wrapper over the checked_pow functions in the standard library, for example this one.

Source§

type Output = u64

Source§

impl CheckedPow<u64> for u128

Source§

fn checked_pow(self, exp: u64) -> Option<u128>

This is a wrapper over the checked_pow functions in the standard library, for example this one.

Source§

type Output = u128

Source§

impl CheckedPow<u64> for usize

Source§

fn checked_pow(self, exp: u64) -> Option<usize>

This is a wrapper over the checked_pow functions in the standard library, for example this one.

Source§

type Output = usize

Implementors§