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