Trait malachite_base::num::arithmetic::traits::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.

§

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.

§

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.

§

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.

§

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.

§

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.

§

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.

§

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.

§

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.

§

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.

§

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.

§

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.

§

type Output = usize

Implementors§