pub trait Pow<RHS> {
    type Output;
    fn pow(self, rhs: RHS) -> Self::Output;
}
Expand description

Binary operator for raising a value to a power.

Associated Types

The result after applying the operator.

Required methods

Returns self to the power rhs.

Examples
use num_traits::Pow;
assert_eq!(Pow::pow(10u32, 2u32), 100);

Implementations on Foreign Types

Implementors

impl<'a> Pow<u8> for &'a BigInt

impl<'a, 'b> Pow<&'b u8> for &'a BigInt

impl<'a> Pow<u16> for &'a BigInt

impl<'a, 'b> Pow<&'b u16> for &'a BigInt

impl<'a> Pow<u32> for &'a BigInt

impl<'a, 'b> Pow<&'b u32> for &'a BigInt

impl<'a> Pow<u64> for &'a BigInt

impl<'a, 'b> Pow<&'b u64> for &'a BigInt

impl<'a> Pow<usize> for &'a BigInt

impl<'a, 'b> Pow<&'b usize> for &'a BigInt

impl<'a> Pow<u128> for &'a BigInt

impl<'a, 'b> Pow<&'b u128> for &'a BigInt

impl<'a> Pow<BigUint> for &'a BigInt

impl<'a, 'b> Pow<&'b BigUint> for &'a BigInt

impl<'a> Pow<BigUint> for &'a BigUint

impl<'a, 'b> Pow<&'b BigUint> for &'a BigUint

impl<'a> Pow<u8> for &'a BigUint

impl<'a, 'b> Pow<&'b u8> for &'a BigUint

impl<'a> Pow<u16> for &'a BigUint

impl<'a, 'b> Pow<&'b u16> for &'a BigUint

impl<'a> Pow<u32> for &'a BigUint

impl<'a, 'b> Pow<&'b u32> for &'a BigUint

impl<'a> Pow<u64> for &'a BigUint

impl<'a, 'b> Pow<&'b u64> for &'a BigUint

impl<'a> Pow<usize> for &'a BigUint

impl<'a, 'b> Pow<&'b usize> for &'a BigUint

impl<'a> Pow<u128> for &'a BigUint

impl<'a, 'b> Pow<&'b u128> for &'a BigUint

impl<'a, T: Clone + Num> Pow<u8> for &'a Complex<T>

impl<'a, 'b, T: Clone + Num> Pow<&'b u8> for &'a Complex<T>

impl<'a, T: Clone + Num + Neg<Output = T>> Pow<i8> for &'a Complex<T>

impl<'a, 'b, T: Clone + Num + Neg<Output = T>> Pow<&'b i8> for &'a Complex<T>

impl<'a, T: Clone + Num> Pow<u16> for &'a Complex<T>

impl<'a, 'b, T: Clone + Num> Pow<&'b u16> for &'a Complex<T>

impl<'a, T: Clone + Num + Neg<Output = T>> Pow<i16> for &'a Complex<T>

impl<'a, 'b, T: Clone + Num + Neg<Output = T>> Pow<&'b i16> for &'a Complex<T>

impl<'a, T: Clone + Num> Pow<u32> for &'a Complex<T>

impl<'a, 'b, T: Clone + Num> Pow<&'b u32> for &'a Complex<T>

impl<'a, T: Clone + Num + Neg<Output = T>> Pow<i32> for &'a Complex<T>

impl<'a, 'b, T: Clone + Num + Neg<Output = T>> Pow<&'b i32> for &'a Complex<T>

impl<'a, T: Clone + Num> Pow<u64> for &'a Complex<T>

impl<'a, 'b, T: Clone + Num> Pow<&'b u64> for &'a Complex<T>

impl<'a, T: Clone + Num + Neg<Output = T>> Pow<i64> for &'a Complex<T>

impl<'a, 'b, T: Clone + Num + Neg<Output = T>> Pow<&'b i64> for &'a Complex<T>

impl<'a, T: Clone + Num> Pow<usize> for &'a Complex<T>

impl<'a, 'b, T: Clone + Num> Pow<&'b usize> for &'a Complex<T>

impl<'a, T: Clone + Num + Neg<Output = T>> Pow<isize> for &'a Complex<T>

impl<'a, 'b, T: Clone + Num + Neg<Output = T>> Pow<&'b isize> for &'a Complex<T>

impl<'a, T: Clone + Num> Pow<u128> for &'a Complex<T>

impl<'a, 'b, T: Clone + Num> Pow<&'b u128> for &'a Complex<T>

impl<'a, T: Clone + Num + Neg<Output = T>> Pow<i128> for &'a Complex<T>

impl<'a, 'b, T: Clone + Num + Neg<Output = T>> Pow<&'b i128> for &'a Complex<T>

impl<T: Clone + Integer + Pow<u8, Output = T>> Pow<u8> for Ratio<T>

impl<'a, T: Clone + Integer> Pow<u8> for &'a Ratio<T> where
    &'a T: Pow<u8, Output = T>, 

impl<'b, T: Clone + Integer + Pow<u8, Output = T>> Pow<&'b u8> for Ratio<T>

impl<'a, 'b, T: Clone + Integer> Pow<&'b u8> for &'a Ratio<T> where
    &'a T: Pow<u8, Output = T>, 

impl<T: Clone + Integer + Pow<u16, Output = T>> Pow<u16> for Ratio<T>

impl<'a, T: Clone + Integer> Pow<u16> for &'a Ratio<T> where
    &'a T: Pow<u16, Output = T>, 

impl<'b, T: Clone + Integer + Pow<u16, Output = T>> Pow<&'b u16> for Ratio<T>

impl<'a, 'b, T: Clone + Integer> Pow<&'b u16> for &'a Ratio<T> where
    &'a T: Pow<u16, Output = T>, 

impl<T: Clone + Integer + Pow<u32, Output = T>> Pow<u32> for Ratio<T>

impl<'a, T: Clone + Integer> Pow<u32> for &'a Ratio<T> where
    &'a T: Pow<u32, Output = T>, 

impl<'b, T: Clone + Integer + Pow<u32, Output = T>> Pow<&'b u32> for Ratio<T>

impl<'a, 'b, T: Clone + Integer> Pow<&'b u32> for &'a Ratio<T> where
    &'a T: Pow<u32, Output = T>, 

impl<T: Clone + Integer + Pow<u64, Output = T>> Pow<u64> for Ratio<T>

impl<'a, T: Clone + Integer> Pow<u64> for &'a Ratio<T> where
    &'a T: Pow<u64, Output = T>, 

impl<'b, T: Clone + Integer + Pow<u64, Output = T>> Pow<&'b u64> for Ratio<T>

impl<'a, 'b, T: Clone + Integer> Pow<&'b u64> for &'a Ratio<T> where
    &'a T: Pow<u64, Output = T>, 

impl<T: Clone + Integer + Pow<u128, Output = T>> Pow<u128> for Ratio<T>

impl<'a, T: Clone + Integer> Pow<u128> for &'a Ratio<T> where
    &'a T: Pow<u128, Output = T>, 

impl<'b, T: Clone + Integer + Pow<u128, Output = T>> Pow<&'b u128> for Ratio<T>

impl<'a, 'b, T: Clone + Integer> Pow<&'b u128> for &'a Ratio<T> where
    &'a T: Pow<u128, Output = T>, 

impl<T: Clone + Integer + Pow<usize, Output = T>> Pow<usize> for Ratio<T>

impl<'a, T: Clone + Integer> Pow<usize> for &'a Ratio<T> where
    &'a T: Pow<usize, Output = T>, 

impl<'b, T: Clone + Integer + Pow<usize, Output = T>> Pow<&'b usize> for Ratio<T>

impl<'a, 'b, T: Clone + Integer> Pow<&'b usize> for &'a Ratio<T> where
    &'a T: Pow<usize, Output = T>, 

impl<T: Clone + Integer + Pow<u8, Output = T>> Pow<i8> for Ratio<T>

impl<'a, T: Clone + Integer> Pow<i8> for &'a Ratio<T> where
    &'a T: Pow<u8, Output = T>, 

impl<'b, T: Clone + Integer + Pow<u8, Output = T>> Pow<&'b i8> for Ratio<T>

impl<'a, 'b, T: Clone + Integer> Pow<&'b i8> for &'a Ratio<T> where
    &'a T: Pow<u8, Output = T>, 

impl<T: Clone + Integer + Pow<u16, Output = T>> Pow<i16> for Ratio<T>

impl<'a, T: Clone + Integer> Pow<i16> for &'a Ratio<T> where
    &'a T: Pow<u16, Output = T>, 

impl<'b, T: Clone + Integer + Pow<u16, Output = T>> Pow<&'b i16> for Ratio<T>

impl<'a, 'b, T: Clone + Integer> Pow<&'b i16> for &'a Ratio<T> where
    &'a T: Pow<u16, Output = T>, 

impl<T: Clone + Integer + Pow<u32, Output = T>> Pow<i32> for Ratio<T>

impl<'a, T: Clone + Integer> Pow<i32> for &'a Ratio<T> where
    &'a T: Pow<u32, Output = T>, 

impl<'b, T: Clone + Integer + Pow<u32, Output = T>> Pow<&'b i32> for Ratio<T>

impl<'a, 'b, T: Clone + Integer> Pow<&'b i32> for &'a Ratio<T> where
    &'a T: Pow<u32, Output = T>, 

impl<T: Clone + Integer + Pow<u64, Output = T>> Pow<i64> for Ratio<T>

impl<'a, T: Clone + Integer> Pow<i64> for &'a Ratio<T> where
    &'a T: Pow<u64, Output = T>, 

impl<'b, T: Clone + Integer + Pow<u64, Output = T>> Pow<&'b i64> for Ratio<T>

impl<'a, 'b, T: Clone + Integer> Pow<&'b i64> for &'a Ratio<T> where
    &'a T: Pow<u64, Output = T>, 

impl<T: Clone + Integer + Pow<u128, Output = T>> Pow<i128> for Ratio<T>

impl<'a, T: Clone + Integer> Pow<i128> for &'a Ratio<T> where
    &'a T: Pow<u128, Output = T>, 

impl<'b, T: Clone + Integer + Pow<u128, Output = T>> Pow<&'b i128> for Ratio<T>

impl<'a, 'b, T: Clone + Integer> Pow<&'b i128> for &'a Ratio<T> where
    &'a T: Pow<u128, Output = T>, 

impl<T: Clone + Integer + Pow<usize, Output = T>> Pow<isize> for Ratio<T>

impl<'a, T: Clone + Integer> Pow<isize> for &'a Ratio<T> where
    &'a T: Pow<usize, Output = T>, 

impl<'b, T: Clone + Integer + Pow<usize, Output = T>> Pow<&'b isize> for Ratio<T>

impl<'a, 'b, T: Clone + Integer> Pow<&'b isize> for &'a Ratio<T> where
    &'a T: Pow<usize, Output = T>,