pub trait Pow<RHS> {
type Output;
fn pow(self, rhs: RHS) -> Self::Output;
}
Binary operator for raising a value to a power.
The result after applying the operator.
fn pow(self, rhs: RHS) -> Self::Output
Returns self
to the power rhs
.
use num_traits::Pow;
assert_eq!(Pow::pow(10u32, 2u32), 100);
impl Pow<u8> for u8 type Output = u8; | |
impl<'a> Pow<&'a u8> for u8 type Output = u8; | |
impl<'a> Pow<u8> for &'a u8 type Output = u8; | |
impl<'a, 'b> Pow<&'a u8> for &'b u8 type Output = u8; | |
impl Pow<u16> for u8 type Output = u8; | |
impl<'a> Pow<&'a u16> for u8 type Output = u8; | |
impl<'a> Pow<u16> for &'a u8 type Output = u8; | |
impl<'a, 'b> Pow<&'a u16> for &'b u8 type Output = u8; | |
impl Pow<u32> for u8 type Output = u8; | |
impl<'a> Pow<&'a u32> for u8 type Output = u8; | |
impl<'a> Pow<u32> for &'a u8 type Output = u8; | |
impl<'a, 'b> Pow<&'a u32> for &'b u8 type Output = u8; | |
impl Pow<usize> for u8 type Output = u8; | |
impl<'a> Pow<&'a usize> for u8 type Output = u8; | |
impl<'a> Pow<usize> for &'a u8 type Output = u8; | |
impl<'a, 'b> Pow<&'a usize> for &'b u8 type Output = u8; | |
impl Pow<u8> for i8 type Output = i8; | |
impl<'a> Pow<&'a u8> for i8 type Output = i8; | |
impl<'a> Pow<u8> for &'a i8 type Output = i8; | |
impl<'a, 'b> Pow<&'a u8> for &'b i8 type Output = i8; | |
impl Pow<u16> for i8 type Output = i8; | |
impl<'a> Pow<&'a u16> for i8 type Output = i8; | |
impl<'a> Pow<u16> for &'a i8 type Output = i8; | |
impl<'a, 'b> Pow<&'a u16> for &'b i8 type Output = i8; | |
impl Pow<u32> for i8 type Output = i8; | |
impl<'a> Pow<&'a u32> for i8 type Output = i8; | |
impl<'a> Pow<u32> for &'a i8 type Output = i8; | |
impl<'a, 'b> Pow<&'a u32> for &'b i8 type Output = i8; | |
impl Pow<usize> for i8 type Output = i8; | |
impl<'a> Pow<&'a usize> for i8 type Output = i8; | |
impl<'a> Pow<usize> for &'a i8 type Output = i8; | |
impl<'a, 'b> Pow<&'a usize> for &'b i8 type Output = i8; | |
impl Pow<u8> for u16 type Output = u16; | |
impl<'a> Pow<&'a u8> for u16 type Output = u16; | |
impl<'a> Pow<u8> for &'a u16 type Output = u16; | |
impl<'a, 'b> Pow<&'a u8> for &'b u16 type Output = u16; | |
impl Pow<u16> for u16 type Output = u16; | |
impl<'a> Pow<&'a u16> for u16 type Output = u16; | |
impl<'a> Pow<u16> for &'a u16 type Output = u16; | |
impl<'a, 'b> Pow<&'a u16> for &'b u16 type Output = u16; | |
impl Pow<u32> for u16 type Output = u16; | |
impl<'a> Pow<&'a u32> for u16 type Output = u16; | |
impl<'a> Pow<u32> for &'a u16 type Output = u16; | |
impl<'a, 'b> Pow<&'a u32> for &'b u16 type Output = u16; | |
impl Pow<usize> for u16 type Output = u16; | |
impl<'a> Pow<&'a usize> for u16 type Output = u16; | |
impl<'a> Pow<usize> for &'a u16 type Output = u16; | |
impl<'a, 'b> Pow<&'a usize> for &'b u16 type Output = u16; | |
impl Pow<u8> for i16 type Output = i16; | |
impl<'a> Pow<&'a u8> for i16 type Output = i16; | |
impl<'a> Pow<u8> for &'a i16 type Output = i16; | |
impl<'a, 'b> Pow<&'a u8> for &'b i16 type Output = i16; | |
impl Pow<u16> for i16 type Output = i16; | |
impl<'a> Pow<&'a u16> for i16 type Output = i16; | |
impl<'a> Pow<u16> for &'a i16 type Output = i16; | |
impl<'a, 'b> Pow<&'a u16> for &'b i16 type Output = i16; | |
impl Pow<u32> for i16 type Output = i16; | |
impl<'a> Pow<&'a u32> for i16 type Output = i16; | |
impl<'a> Pow<u32> for &'a i16 type Output = i16; | |
impl<'a, 'b> Pow<&'a u32> for &'b i16 type Output = i16; | |
impl Pow<usize> for i16 type Output = i16; | |
impl<'a> Pow<&'a usize> for i16 type Output = i16; | |
impl<'a> Pow<usize> for &'a i16 type Output = i16; | |
impl<'a, 'b> Pow<&'a usize> for &'b i16 type Output = i16; | |
impl Pow<u8> for u32 type Output = u32; | |
impl<'a> Pow<&'a u8> for u32 type Output = u32; | |
impl<'a> Pow<u8> for &'a u32 type Output = u32; | |
impl<'a, 'b> Pow<&'a u8> for &'b u32 type Output = u32; | |
impl Pow<u16> for u32 type Output = u32; | |
impl<'a> Pow<&'a u16> for u32 type Output = u32; | |
impl<'a> Pow<u16> for &'a u32 type Output = u32; | |
impl<'a, 'b> Pow<&'a u16> for &'b u32 type Output = u32; | |
impl Pow<u32> for u32 type Output = u32; | |
impl<'a> Pow<&'a u32> for u32 type Output = u32; | |
impl<'a> Pow<u32> for &'a u32 type Output = u32; | |
impl<'a, 'b> Pow<&'a u32> for &'b u32 type Output = u32; | |
impl Pow<usize> for u32 type Output = u32; | |
impl<'a> Pow<&'a usize> for u32 type Output = u32; | |
impl<'a> Pow<usize> for &'a u32 type Output = u32; | |
impl<'a, 'b> Pow<&'a usize> for &'b u32 type Output = u32; | |
impl Pow<u8> for i32 type Output = i32; | |
impl<'a> Pow<&'a u8> for i32 type Output = i32; | |
impl<'a> Pow<u8> for &'a i32 type Output = i32; | |
impl<'a, 'b> Pow<&'a u8> for &'b i32 type Output = i32; | |
impl Pow<u16> for i32 type Output = i32; | |
impl<'a> Pow<&'a u16> for i32 type Output = i32; | |
impl<'a> Pow<u16> for &'a i32 type Output = i32; | |
impl<'a, 'b> Pow<&'a u16> for &'b i32 type Output = i32; | |
impl Pow<u32> for i32 type Output = i32; | |
impl<'a> Pow<&'a u32> for i32 type Output = i32; | |
impl<'a> Pow<u32> for &'a i32 type Output = i32; | |
impl<'a, 'b> Pow<&'a u32> for &'b i32 type Output = i32; | |
impl Pow<usize> for i32 type Output = i32; | |
impl<'a> Pow<&'a usize> for i32 type Output = i32; | |
impl<'a> Pow<usize> for &'a i32 type Output = i32; | |
impl<'a, 'b> Pow<&'a usize> for &'b i32 type Output = i32; | |
impl Pow<u8> for u64 type Output = u64; | |
impl<'a> Pow<&'a u8> for u64 type Output = u64; | |
impl<'a> Pow<u8> for &'a u64 type Output = u64; | |
impl<'a, 'b> Pow<&'a u8> for &'b u64 type Output = u64; | |
impl Pow<u16> for u64 type Output = u64; | |
impl<'a> Pow<&'a u16> for u64 type Output = u64; | |
impl<'a> Pow<u16> for &'a u64 type Output = u64; | |
impl<'a, 'b> Pow<&'a u16> for &'b u64 type Output = u64; | |
impl Pow<u32> for u64 type Output = u64; | |
impl<'a> Pow<&'a u32> for u64 type Output = u64; | |
impl<'a> Pow<u32> for &'a u64 type Output = u64; | |
impl<'a, 'b> Pow<&'a u32> for &'b u64 type Output = u64; | |
impl Pow<usize> for u64 type Output = u64; | |
impl<'a> Pow<&'a usize> for u64 type Output = u64; | |
impl<'a> Pow<usize> for &'a u64 type Output = u64; | |
impl<'a, 'b> Pow<&'a usize> for &'b u64 type Output = u64; | |
impl Pow<u8> for i64 type Output = i64; | |
impl<'a> Pow<&'a u8> for i64 type Output = i64; | |
impl<'a> Pow<u8> for &'a i64 type Output = i64; | |
impl<'a, 'b> Pow<&'a u8> for &'b i64 type Output = i64; | |
impl Pow<u16> for i64 type Output = i64; | |
impl<'a> Pow<&'a u16> for i64 type Output = i64; | |
impl<'a> Pow<u16> for &'a i64 type Output = i64; | |
impl<'a, 'b> Pow<&'a u16> for &'b i64 type Output = i64; | |
impl Pow<u32> for i64 type Output = i64; | |
impl<'a> Pow<&'a u32> for i64 type Output = i64; | |
impl<'a> Pow<u32> for &'a i64 type Output = i64; | |
impl<'a, 'b> Pow<&'a u32> for &'b i64 type Output = i64; | |
impl Pow<usize> for i64 type Output = i64; | |
impl<'a> Pow<&'a usize> for i64 type Output = i64; | |
impl<'a> Pow<usize> for &'a i64 type Output = i64; | |
impl<'a, 'b> Pow<&'a usize> for &'b i64 type Output = i64; | |
impl Pow<u8> for u128 type Output = u128; | |
impl<'a> Pow<&'a u8> for u128 type Output = u128; | |
impl<'a> Pow<u8> for &'a u128 type Output = u128; | |
impl<'a, 'b> Pow<&'a u8> for &'b u128 type Output = u128; | |
impl Pow<u16> for u128 type Output = u128; | |
impl<'a> Pow<&'a u16> for u128 type Output = u128; | |
impl<'a> Pow<u16> for &'a u128 type Output = u128; | |
impl<'a, 'b> Pow<&'a u16> for &'b u128 type Output = u128; | |
impl Pow<u32> for u128 type Output = u128; | |
impl<'a> Pow<&'a u32> for u128 type Output = u128; | |
impl<'a> Pow<u32> for &'a u128 type Output = u128; | |
impl<'a, 'b> Pow<&'a u32> for &'b u128 type Output = u128; | |
impl Pow<usize> for u128 type Output = u128; | |
impl<'a> Pow<&'a usize> for u128 type Output = u128; | |
impl<'a> Pow<usize> for &'a u128 type Output = u128; | |
impl<'a, 'b> Pow<&'a usize> for &'b u128 type Output = u128; | |
impl Pow<u8> for i128 type Output = i128; | |
impl<'a> Pow<&'a u8> for i128 type Output = i128; | |
impl<'a> Pow<u8> for &'a i128 type Output = i128; | |
impl<'a, 'b> Pow<&'a u8> for &'b i128 type Output = i128; | |
impl Pow<u16> for i128 type Output = i128; | |
impl<'a> Pow<&'a u16> for i128 type Output = i128; | |
impl<'a> Pow<u16> for &'a i128 type Output = i128; | |
impl<'a, 'b> Pow<&'a u16> for &'b i128 type Output = i128; | |
impl Pow<u32> for i128 type Output = i128; | |
impl<'a> Pow<&'a u32> for i128 type Output = i128; | |
impl<'a> Pow<u32> for &'a i128 type Output = i128; | |
impl<'a, 'b> Pow<&'a u32> for &'b i128 type Output = i128; | |
impl Pow<usize> for i128 type Output = i128; | |
impl<'a> Pow<&'a usize> for i128 type Output = i128; | |
impl<'a> Pow<usize> for &'a i128 type Output = i128; | |
impl<'a, 'b> Pow<&'a usize> for &'b i128 type Output = i128; | |
impl Pow<u8> for usize type Output = usize; | |
impl<'a> Pow<&'a u8> for usize type Output = usize; | |
impl<'a> Pow<u8> for &'a usize type Output = usize; | |
impl<'a, 'b> Pow<&'a u8> for &'b usize type Output = usize; | |
impl Pow<u16> for usize type Output = usize; | |
impl<'a> Pow<&'a u16> for usize type Output = usize; | |
impl<'a> Pow<u16> for &'a usize type Output = usize; | |
impl<'a, 'b> Pow<&'a u16> for &'b usize type Output = usize; | |
impl Pow<u32> for usize type Output = usize; | |
impl<'a> Pow<&'a u32> for usize type Output = usize; | |
impl<'a> Pow<u32> for &'a usize type Output = usize; | |
impl<'a, 'b> Pow<&'a u32> for &'b usize type Output = usize; | |
impl Pow<usize> for usize type Output = usize; | |
impl<'a> Pow<&'a usize> for usize type Output = usize; | |
impl<'a> Pow<usize> for &'a usize type Output = usize; | |
impl<'a, 'b> Pow<&'a usize> for &'b usize type Output = usize; | |
impl Pow<u8> for isize type Output = isize; | |
impl<'a> Pow<&'a u8> for isize type Output = isize; | |
impl<'a> Pow<u8> for &'a isize type Output = isize; | |
impl<'a, 'b> Pow<&'a u8> for &'b isize type Output = isize; | |
impl Pow<u16> for isize type Output = isize; | |
impl<'a> Pow<&'a u16> for isize type Output = isize; | |
impl<'a> Pow<u16> for &'a isize type Output = isize; | |
impl<'a, 'b> Pow<&'a u16> for &'b isize type Output = isize; | |
impl Pow<u32> for isize type Output = isize; | |
impl<'a> Pow<&'a u32> for isize type Output = isize; | |
impl<'a> Pow<u32> for &'a isize type Output = isize; | |
impl<'a, 'b> Pow<&'a u32> for &'b isize type Output = isize; | |
impl Pow<usize> for isize type Output = isize; | |
impl<'a> Pow<&'a usize> for isize type Output = isize; | |
impl<'a> Pow<usize> for &'a isize type Output = isize; | |
impl<'a, 'b> Pow<&'a usize> for &'b isize type Output = isize; | |