Trait sp_arithmetic::ThresholdOrd
source · Expand description
Trait for comparing two numbers with an threshold.
Returns:
Ordering::Greaterifselfis greater thanother + threshold.Ordering::Lessifselfis less thanother - threshold.Ordering::Equalotherwise.