Module num_traits::ops::saturating
source · Traits§
- Saturating math operations. Deprecated, use
SaturatingAdd
,SaturatingSub
andSaturatingMul
instead. - Performs addition that saturates at the numeric bounds instead of overflowing.
- Performs multiplication that saturates at the numeric bounds instead of overflowing.
- Performs subtraction that saturates at the numeric bounds instead of overflowing.