pub trait Pow<RHS> {
type Output;
fn pow(self, rhs: RHS) -> Self::Output;
}
Expand description
Binary operator for raising a value to a power.
The result after applying the operator.
Returns self
to the power rhs
.
use num_traits::Pow;
assert_eq!(Pow::pow(10u32, 2u32), 100);
impl<'a, 'b> Pow<&'a u8> for &'b u8
impl<'a, 'b> Pow<&'a u8> for &'b i8