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::{ops::Pow, Integer};
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 = PowFromI8Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromI8Incomplete<'b>
[src]
type Output = PowFromI16Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromI16Incomplete<'b>
[src]
type Output = PowFromI32Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromI32Incomplete<'b>
[src]
type Output = PowFromI64Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromI64Incomplete<'b>
[src]
type Output = PowFromI128Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromI128Incomplete<'b>
[src]
type Output = PowFromU8Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromU8Incomplete<'b>
[src]
type Output = PowFromU16Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromU16Incomplete<'b>
[src]
type Output = PowFromU32Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromU32Incomplete<'b>
[src]
type Output = PowFromU64Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromU64Incomplete<'b>
[src]
type Output = PowFromU128Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromU128Incomplete<'b>
[src]
type Output = PowFromF32Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromF32Incomplete<'b>
[src]
type Output = PowFromF64Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromF64Incomplete<'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 = PowI16Incomplete<'b>
fn pow(self, rhs: i16) -> PowI16Incomplete<'b>
[src]
type Output = PowI16Incomplete<'b>
fn pow(self, rhs: i16) -> PowI16Incomplete<'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 = PowI64Incomplete<'b>
fn pow(self, rhs: i64) -> PowI64Incomplete<'b>
[src]
type Output = PowI64Incomplete<'b>
fn pow(self, rhs: i64) -> PowI64Incomplete<'b>
[src]
type Output = PowI8Incomplete<'b>
fn pow(self, rhs: i8) -> PowI8Incomplete<'b>
[src]
type Output = PowI8Incomplete<'b>
fn pow(self, rhs: i8) -> PowI8Incomplete<'b>
[src]
type Output = PowU16Incomplete<'b>
fn pow(self, rhs: u16) -> PowU16Incomplete<'b>
[src]
type Output = PowU16Incomplete<'b>
fn pow(self, rhs: u16) -> PowU16Incomplete<'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]
type Output = PowU64Incomplete<'b>
fn pow(self, rhs: u64) -> PowU64Incomplete<'b>
[src]
type Output = PowU64Incomplete<'b>
fn pow(self, rhs: u64) -> PowU64Incomplete<'b>
[src]
type Output = PowU8Incomplete<'b>
fn pow(self, rhs: u8) -> PowU8Incomplete<'b>
[src]
type Output = PowU8Incomplete<'b>
fn pow(self, rhs: u8) -> PowU8Incomplete<'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]
impl<'b, '_> Pow<&'_ i128> for &'b Float
[src]
impl<'b, '_> Pow<&'_ i16> for &'b Float
[src]
type Output = PowI16Incomplete<'b>
fn pow(self, rhs: &i16) -> PowI16Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ i16> for &'b Complex
[src]
type Output = PowI16Incomplete<'b>
fn pow(self, rhs: &i16) -> PowI16Incomplete<'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<&'_ i64> for &'b Float
[src]
type Output = PowI64Incomplete<'b>
fn pow(self, rhs: &i64) -> PowI64Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ i64> for &'b Complex
[src]
type Output = PowI64Incomplete<'b>
fn pow(self, rhs: &i64) -> PowI64Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ i8> for &'b Float
[src]
type Output = PowI8Incomplete<'b>
fn pow(self, rhs: &i8) -> PowI8Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ i8> for &'b Complex
[src]
type Output = PowI8Incomplete<'b>
fn pow(self, rhs: &i8) -> PowI8Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ u128> for &'b Float
[src]
impl<'b, '_> Pow<&'_ u16> for &'b Float
[src]
type Output = PowU16Incomplete<'b>
fn pow(self, rhs: &u16) -> PowU16Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ u16> for &'b Complex
[src]
type Output = PowU16Incomplete<'b>
fn pow(self, rhs: &u16) -> PowU16Incomplete<'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]
impl<'b, '_> Pow<&'_ u64> for &'b Float
[src]
type Output = PowU64Incomplete<'b>
fn pow(self, rhs: &u64) -> PowU64Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ u64> for &'b Complex
[src]
type Output = PowU64Incomplete<'b>
fn pow(self, rhs: &u64) -> PowU64Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ u8> for &'b Float
[src]
type Output = PowU8Incomplete<'b>
fn pow(self, rhs: &u8) -> PowU8Incomplete<'b>
[src]
impl<'b, '_> Pow<&'_ u8> for &'b Complex
[src]
type Output = PowU8Incomplete<'b>
fn pow(self, rhs: &u8) -> PowU8Incomplete<'b>
[src]
Loading content...