Saturating::saturating_pow
fn saturating_pow(S a, int exp) -> S Import
Source: use arith::{Saturating}; src/arith.hy a ** exp clamped to the type’s range. Panics with negative exponent when exp < 0, like **.
Parameters#
| Name | Type |
|---|---|
a | S |
exp | int |
Returns#
S
See also#
Saturating: Integer arithmetic that clamps toINT_MIN/INT_MAXinstead of panicking.Saturating::saturating_add:a + bclamped to the type’s range.Saturating::saturating_sub:a - bclamped to the type’s range.Saturating::saturating_mul:a * bclamped to the type’s range.