pub trait Pow<Rhs> {
type Output;
fn pow(self, rhs: Rhs) -> Self::Output;
}
The power operation.
use rug::ops::Pow;
struct U(u32);
impl Pow<u16> for U {
type Output = u32;
fn pow(self, rhs: u16) -> u32 {
self.0.pow(rhs as u32)
}
}
let u = U(5);
assert_eq!(u.pow(2_u16), 25);
The resulting type after the power operation.
Loading content...
fn pow(self, rhs: Rhs) -> Self::Output
Performs the power operation.
use rug::Integer;
use rug::ops::Pow;
let base = Integer::from(10);
let power = base.pow(5);
assert_eq!(power, 100_000);
Loading content...
impl<'_, '_> Pow<&'_ u32> for &'_ i8
[src]
impl<'_, '_> Pow<&'_ u32> for &'_ u8
[src]
type Output = PowFromU32Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromU32Incomplete<'b>
[src]
type Output = PowFromI32Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromI32Incomplete<'b>
[src]
type Output = PowFromF64Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromF64Incomplete<'b>
[src]
type Output = PowFromF32Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromF32Incomplete<'b>
[src]
Loading content...
type Output = PowOwnedFloatIncomplete<'a>
fn pow(self, rhs: Float) -> PowOwnedFloatIncomplete<'a>
[src]
type Output = PowOwnedIntegerIncomplete<'a>
fn pow(self, rhs: Integer) -> PowOwnedIntegerIncomplete<'a>
[src]
type Output = PowOwnedIntegerIncomplete<'a>
fn pow(self, rhs: Integer) -> PowOwnedIntegerIncomplete<'a>
[src]
type Output = PowF32Incomplete<'b>
fn pow(self, rhs: f32) -> PowF32Incomplete<'b>
[src]
type Output = PowF32Incomplete<'b>
fn pow(self, rhs: f32) -> PowF32Incomplete<'b>
[src]
type Output = PowF64Incomplete<'b>
fn pow(self, rhs: f64) -> PowF64Incomplete<'b>
[src]
type Output = PowF64Incomplete<'b>
fn pow(self, rhs: f64) -> PowF64Incomplete<'b>
[src]
type Output = PowI32Incomplete<'b>
fn pow(self, rhs: i32) -> PowI32Incomplete<'b>
[src]
type Output = PowI32Incomplete<'b>
fn pow(self, rhs: i32) -> PowI32Incomplete<'b>
[src]
type Output = PowI32Incomplete<'b>
fn pow(self, rhs: i32) -> PowI32Incomplete<'b>
[src]
type Output = PowU32Incomplete<'b>
fn pow(self, rhs: u32) -> PowU32Incomplete<'b>
[src]
type Output = PowU32Incomplete<'b>
fn pow(self, rhs: u32) -> PowU32Incomplete<'b>
[src]
type Output = PowU32Incomplete<'b>
fn pow(self, rhs: u32) -> PowU32Incomplete<'b>
[src]
type Output = PowU32Incomplete<'b>
fn pow(self, rhs: u32) -> PowU32Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ f32> for &'b Float
[src]
type Output = PowF32Incomplete<'b>
fn pow(self, rhs: &f32) -> PowF32Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ f32> for &'b Complex
[src]
type Output = PowF32Incomplete<'b>
fn pow(self, rhs: &f32) -> PowF32Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ f64> for &'b Float
[src]
type Output = PowF64Incomplete<'b>
fn pow(self, rhs: &f64) -> PowF64Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ f64> for &'b Complex
[src]
type Output = PowF64Incomplete<'b>
fn pow(self, rhs: &f64) -> PowF64Incomplete<'b>
[src]
type Output = PowI32Incomplete<'b>
fn pow(self, rhs: &i32) -> PowI32Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ i32> for &'b Float
[src]
type Output = PowI32Incomplete<'b>
fn pow(self, rhs: &i32) -> PowI32Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ i32> for &'b Complex
[src]
type Output = PowI32Incomplete<'b>
fn pow(self, rhs: &i32) -> PowI32Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ u32> for &'b Integer
[src]
type Output = PowU32Incomplete<'b>
fn pow(self, rhs: &u32) -> PowU32Incomplete<'b>
[src]
type Output = PowU32Incomplete<'b>
fn pow(self, rhs: &u32) -> PowU32Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ u32> for &'b Float
[src]
type Output = PowU32Incomplete<'b>
fn pow(self, rhs: &u32) -> PowU32Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ u32> for &'b Complex
[src]
type Output = PowU32Incomplete<'b>
fn pow(self, rhs: &u32) -> PowU32Incomplete<'b>
[src]
Loading content...