pub trait CheckedPow<Rhs = Self> {
type Output;
// Required method
const fn checked_pow(self, exp: Rhs) -> Option<Self::Output>;
}
Expand description
✅ aises self
to the power of exp
, returning None
on overflow or invalid input.
§Panics
This function never panics.