Function |saturating_mul

std/ops/num::|saturating_mul


Usage

|saturating_mul<N>(a, b)

Generics

◻ N: SaturatingMul

Parameters

↳ a: N
↳ b: N

Return

↴ N


Multiply a and b, saturating to bounds.

This function is infaillible and saturate to the closest bound, minimal or maximal, if a Ă— b is out of bounds for the data type.