pub trait Metric:
Default
+ Clone
+ PartialEq
+ Debug
+ Send
+ Sync {
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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.