Trait cml_chain::assets::utils::ClampedSub
source · pub trait ClampedSub {
// Required method
fn clamped_sub(&self, rhs: &Self) -> Self;
}Expand description
Subtraction over a numerical type where the type’s minimum is returned if underflow would occur.
Required Methods§
fn clamped_sub(&self, rhs: &Self) -> Self
Object Safety§
This trait is not object safe.