Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |pow

std/ops/num::|pow


Usage

|pow<N>(val, exp)

Generics

◻ N: Pow

Parameters

↳ val: N
↳ exp: u32

Return

N


Compute exponent of given value

This function is infaillible but may overflow if valᵉˣᵖ is out of bounds for the data type.