pub trait ThresholdOrd<T> {
// Required method
fn tcmp(&self, other: &T, threshold: T) -> Ordering;
}Expand description
Trait for comparing two numbers with an threshold.
Returns:
Ordering::Greaterifselfis greater thanother + threshold.Ordering::Lessifselfis less thanother - threshold.Ordering::Equalotherwise.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".