Trait Pow

trait Pow<RHS>

Binary operator for raising a value to a power.

Associated Types

type Output

The result after applying the operator.

Required Methods

fn pow(self: Self, rhs: RHS) -> <Self as >::Output

Returns self to the power rhs.

Examples

use num_traits::Pow;
assert_eq!(Pow::pow(10u32, 2u32), 100);

Implementors