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(u32::from(rhs))
}
}
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
[src]
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...type Output = PowFromI8Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromI8Incomplete<'b>
[src]
type Output = PowFromI16Incomplete<'b>
fn pow(self, rhs: &Float) -> PowFromI16Incomplete<'_>
[src]
type Output = PowFromI16Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromI16Incomplete<'b>
[src]
type Output = PowFromI32Incomplete<'b>
fn pow(self, rhs: &Float) -> PowFromI32Incomplete<'_>
[src]
type Output = PowFromI32Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromI32Incomplete<'b>
[src]
type Output = PowFromI64Incomplete<'b>
fn pow(self, rhs: &Float) -> PowFromI64Incomplete<'_>
[src]
type Output = PowFromI64Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromI64Incomplete<'b>
[src]
type Output = PowFromI128Incomplete<'b>
fn pow(self, rhs: &Float) -> PowFromI128Incomplete<'_>
[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: &Float) -> PowFromU16Incomplete<'_>
[src]
type Output = PowFromU16Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromU16Incomplete<'b>
[src]
type Output = PowFromU32Incomplete<'b>
fn pow(self, rhs: &Float) -> PowFromU32Incomplete<'_>
[src]
type Output = PowFromU32Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromU32Incomplete<'b>
[src]
type Output = PowFromU64Incomplete<'b>
fn pow(self, rhs: &Float) -> PowFromU64Incomplete<'_>
[src]
type Output = PowFromU64Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromU64Incomplete<'b>
[src]
type Output = PowFromU128Incomplete<'b>
fn pow(self, rhs: &Float) -> PowFromU128Incomplete<'_>
[src]
type Output = PowFromU128Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromU128Incomplete<'b>
[src]
type Output = PowFromF32Incomplete<'b>
fn pow(self, rhs: &Float) -> PowFromF32Incomplete<'_>
[src]
type Output = PowFromF32Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromF32Incomplete<'b>
[src]
type Output = PowFromF64Incomplete<'b>
fn pow(self, rhs: &Float) -> PowFromF64Incomplete<'_>
[src]
type Output = PowFromF64Incomplete<'b>
fn pow(self, rhs: &'b Float) -> PowFromF64Incomplete<'b>
[src]
Loading content...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 = PowF64Incomplete<'b>
fn pow(self, rhs: &f64) -> PowF64Incomplete<'b>
[src]
type Output = PowI8Incomplete<'b>
fn pow(self, rhs: &i8) -> PowI8Incomplete<'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 = PowI64Incomplete<'b>
fn pow(self, rhs: &i64) -> PowI64Incomplete<'b>
[src]
type Output = PowU8Incomplete<'b>
fn pow(self, rhs: &u8) -> PowU8Incomplete<'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 = PowU64Incomplete<'b>
fn pow(self, rhs: &u64) -> PowU64Incomplete<'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 = PowI8Incomplete<'b>
fn pow(self, rhs: i8) -> PowI8Incomplete<'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 = PowI64Incomplete<'b>
fn pow(self, rhs: i64) -> PowI64Incomplete<'b>
[src]
type Output = PowU8Incomplete<'b>
fn pow(self, rhs: u8) -> PowU8Incomplete<'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 = PowU64Incomplete<'b>
fn pow(self, rhs: u64) -> PowU64Incomplete<'b>
[src]
Loading content...