Saturating::saturating_mul
fn saturating_mul(S a, S b) -> S Import
Source: use arith::{Saturating}; src/arith.hy a * b clamped to the type’s range.
Parameters#
| Name | Type |
|---|---|
a | S |
b | S |
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_pow:a ** expclamped to the type’s range.