Trait rug::ops::Pow
[−]
[src]
pub trait Pow<Rhs> { type Output; fn pow(self, rhs: Rhs) -> Self::Output; }
The power operation.
Associated Types
type Output
The resulting type after the power operation.
Required Methods
fn pow(self, rhs: Rhs) -> Self::Output
Performs the power operation.
Examples
use rug::Integer; use rug::ops::Pow; let base = Integer::from(10); let ans = base.pow(5); assert_eq!(ans, 100_000);
Implementors
impl Pow<u32> for Integer
impl<'a> Pow<u32> for &'a Integer
impl Pow<i32> for Rational
impl<'a> Pow<i32> for &'a Rational
impl Pow<u32> for Rational
impl<'a> Pow<u32> for &'a Rational
impl<'a> Pow<&'a Float> for Float
impl Pow<Float> for Float
impl<'a> Pow<&'a Float> for &'a Float
impl<'a> Pow<Float> for &'a Float
impl<'a> Pow<&'a Integer> for Float
impl Pow<Integer> for Float
impl<'a> Pow<&'a Integer> for &'a Float
impl<'a> Pow<Integer> for &'a Float
impl Pow<u32> for Float
impl<'a> Pow<u32> for &'a Float
impl Pow<Float> for u32
impl<'a> Pow<&'a Float> for u32
impl Pow<i32> for Float
impl<'a> Pow<i32> for &'a Float
impl Pow<f64> for Float
impl<'a> Pow<f64> for &'a Float
impl Pow<f32> for Float
impl<'a> Pow<f32> for &'a Float
impl<'a> Pow<&'a Complex> for Complex
impl Pow<Complex> for Complex
impl<'a> Pow<&'a Complex> for &'a Complex
impl<'a> Pow<Complex> for &'a Complex
impl<'a> Pow<&'a Float> for Complex
impl Pow<Float> for Complex
impl<'a> Pow<&'a Float> for &'a Complex
impl<'a> Pow<Float> for &'a Complex
impl<'a> Pow<&'a Integer> for Complex
impl Pow<Integer> for Complex
impl<'a> Pow<&'a Integer> for &'a Complex
impl<'a> Pow<Integer> for &'a Complex
impl Pow<u32> for Complex
impl<'a> Pow<u32> for &'a Complex
impl Pow<i32> for Complex
impl<'a> Pow<i32> for &'a Complex
impl Pow<f64> for Complex
impl<'a> Pow<f64> for &'a Complex
impl Pow<f32> for Complex
impl<'a> Pow<f32> for &'a Complex