pub trait Pow<RHS> {
    type Output;

    fn pow(self, rhs: RHS) -> Self::Output;
}
Expand description

Binary operator for raising a value to a power.

Required 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 Pow<u8> for BigInt

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

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

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

impl Pow<u16> for BigInt

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

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

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

impl Pow<u32> for BigInt

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

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

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

impl Pow<u64> for BigInt

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

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

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

impl Pow<usize> for BigInt

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

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

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

impl Pow<u128> for BigInt

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

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

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

impl Pow<BigUint> for BigInt

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

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

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

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

impl Pow<BigUint> for BigUint

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

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

impl Pow<u8> for BigUint

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

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

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

impl Pow<u16> for BigUint

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

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

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

impl Pow<u32> for BigUint

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

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

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

impl Pow<u64> for BigUint

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

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

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

impl Pow<usize> for BigUint

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

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

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

impl Pow<u128> for BigUint

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

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

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