pub trait Distance<Rhs> {
type Output;
// Required method
fn distance(self, other: Rhs) -> Self::Output;
}
Expand description
Trait for computing absolute distance between two numbers. In general, types
should not worry with this trait, but instead implement Sub and Ord.
Computes the absolute (without sign) distance between the given two
numbers.