Trait sp_arithmetic::ThresholdOrd
source · [−]Expand description
Trait for comparing two numbers with an threshold.
Returns:
Ordering::Greater
ifself
is greater thanother + threshold
.Ordering::Less
ifself
is less thanother - threshold
.Ordering::Equal
otherwise.