SaturatingAdd
Performs addition that saturates at the numeric bounds instead of overflowing.
Fully qualified path: core::num::traits::ops::saturating::SaturatingAdd
pub trait SaturatingAdd<T>
Trait functions
saturating_add
Saturating addition. Computes self + other
, saturating at the relevant high or low boundary of the type.
Fully qualified path: core::num::traits::ops::saturating::SaturatingAdd::saturating_add
fn saturating_add(self: T, other: T) -> T