pub trait OverflowingPow<RHS> {
    type Output;

    // Required method
    fn overflowing_pow(self, exp: RHS) -> (Self::Output, bool);
}
Expand description

Raises a number to a power.

Returns a tuple of the sum along with a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped number is returned.

Required Associated Types§

Required Methods§

source

fn overflowing_pow(self, exp: RHS) -> (Self::Output, bool)

Implementations on Foreign Types§

source§

impl OverflowingPow<u64> for i8

source§

fn overflowing_pow(self, exp: u64) -> (i8, bool)

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

§

type Output = i8

source§

impl OverflowingPow<u64> for i16

source§

fn overflowing_pow(self, exp: u64) -> (i16, bool)

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

§

type Output = i16

source§

impl OverflowingPow<u64> for i32

source§

fn overflowing_pow(self, exp: u64) -> (i32, bool)

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

§

type Output = i32

source§

impl OverflowingPow<u64> for i64

source§

fn overflowing_pow(self, exp: u64) -> (i64, bool)

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

§

type Output = i64

source§

impl OverflowingPow<u64> for i128

source§

fn overflowing_pow(self, exp: u64) -> (i128, bool)

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

§

type Output = i128

source§

impl OverflowingPow<u64> for isize

source§

fn overflowing_pow(self, exp: u64) -> (isize, bool)

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

§

type Output = isize

source§

impl OverflowingPow<u64> for u8

source§

fn overflowing_pow(self, exp: u64) -> (u8, bool)

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

§

type Output = u8

source§

impl OverflowingPow<u64> for u16

source§

fn overflowing_pow(self, exp: u64) -> (u16, bool)

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

§

type Output = u16

source§

impl OverflowingPow<u64> for u32

source§

fn overflowing_pow(self, exp: u64) -> (u32, bool)

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

§

type Output = u32

source§

impl OverflowingPow<u64> for u64

source§

fn overflowing_pow(self, exp: u64) -> (u64, bool)

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

§

type Output = u64

source§

impl OverflowingPow<u64> for u128

source§

fn overflowing_pow(self, exp: u64) -> (u128, bool)

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

§

type Output = u128

source§

impl OverflowingPow<u64> for usize

source§

fn overflowing_pow(self, exp: u64) -> (usize, bool)

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

§

type Output = usize

Implementors§