Skip to main content

power

Function power 

Source
pub fn power(x: i64, y: i64) -> Option<i64>
Expand description

x^y. 0^0 is 1. A negative y floors the power, as [wrapped_power] does, with i64’s greatest value for an x of 0. None where the power doesn’t fit an i64.