Trait malachite_base::num::arithmetic::traits::SaturatingPow

source ·
pub trait SaturatingPow<RHS> {
    type Output;

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

Raises a number to a power, saturating at the numeric bounds instead of overflowing.

Required Associated Types§

Required Methods§

source

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

Implementations on Foreign Types§

source§

impl SaturatingPow<u64> for i8

source§

fn saturating_pow(self, exp: u64) -> i8

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

§

type Output = i8

source§

impl SaturatingPow<u64> for i16

source§

fn saturating_pow(self, exp: u64) -> i16

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

§

type Output = i16

source§

impl SaturatingPow<u64> for i32

source§

fn saturating_pow(self, exp: u64) -> i32

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

§

type Output = i32

source§

impl SaturatingPow<u64> for i64

source§

fn saturating_pow(self, exp: u64) -> i64

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

§

type Output = i64

source§

impl SaturatingPow<u64> for i128

source§

fn saturating_pow(self, exp: u64) -> i128

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

§

type Output = i128

source§

impl SaturatingPow<u64> for isize

source§

fn saturating_pow(self, exp: u64) -> isize

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

§

type Output = isize

source§

impl SaturatingPow<u64> for u8

source§

fn saturating_pow(self, exp: u64) -> u8

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

§

type Output = u8

source§

impl SaturatingPow<u64> for u16

source§

fn saturating_pow(self, exp: u64) -> u16

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

§

type Output = u16

source§

impl SaturatingPow<u64> for u32

source§

fn saturating_pow(self, exp: u64) -> u32

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

§

type Output = u32

source§

impl SaturatingPow<u64> for u64

source§

fn saturating_pow(self, exp: u64) -> u64

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

§

type Output = u64

source§

impl SaturatingPow<u64> for u128

source§

fn saturating_pow(self, exp: u64) -> u128

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

§

type Output = u128

source§

impl SaturatingPow<u64> for usize

source§

fn saturating_pow(self, exp: u64) -> usize

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

§

type Output = usize

Implementors§