Trait malachite_base::num::arithmetic::traits::Pow

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

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

Raises a number to a power. Assumes the result is representable.

Required Associated Types§

Required Methods§

source

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

Implementations on Foreign Types§

source§

impl Pow<f32> for f32

source§

fn pow(self, exp: f32) -> f32

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

§

type Output = f32

source§

impl Pow<f64> for f64

source§

fn pow(self, exp: f64) -> f64

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

§

type Output = f64

source§

impl Pow<i64> for f32

source§

fn pow(self, exp: i64) -> f32

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

§

type Output = f32

source§

impl Pow<i64> for f64

source§

fn pow(self, exp: i64) -> f64

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

§

type Output = f64

source§

impl Pow<u64> for i8

source§

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

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

§

type Output = i8

source§

impl Pow<u64> for i16

source§

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

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

§

type Output = i16

source§

impl Pow<u64> for i32

source§

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

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

§

type Output = i32

source§

impl Pow<u64> for i64

source§

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

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

§

type Output = i64

source§

impl Pow<u64> for i128

source§

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

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

§

type Output = i128

source§

impl Pow<u64> for isize

source§

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

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

§

type Output = isize

source§

impl Pow<u64> for u8

source§

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

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

§

type Output = u8

source§

impl Pow<u64> for u16

source§

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

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

§

type Output = u16

source§

impl Pow<u64> for u32

source§

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

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

§

type Output = u32

source§

impl Pow<u64> for u64

source§

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

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

§

type Output = u64

source§

impl Pow<u64> for u128

source§

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

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

§

type Output = u128

source§

impl Pow<u64> for usize

source§

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

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

§

type Output = usize

Implementors§