pub trait Metric: Default + Clone + PartialEq + Debug {
type Distance;
}
Expand description
A representation of the distance between two elements in a set.
Proof Definition
A type Self
has an implementation for Metric
iff it can represent a metric for quantifying distances between values in a set.
Required Associated Types§
sourcetype Distance
type Distance
Proof Definition
Self::Distance
is a type that represents distances in terms of a metric Self
.