Skip to main content
Raises a value to the power of exp. Note that 0⁰ (pow(0, 0)) returns 1. Mathematically this is undefined.

Signature

Panics

Panics if the result of the exponentiation operation overflows the output type.

Examples

Trait functions

pow

Returns self to the power exp.

Signature

Trait types

Output

The type of the result of the power calculation.

Signature