pub trait Distance<T = Self> {
type Output;
// Required method
fn distance(&self, other: T) -> Self::Output;
}Expand description
Is implemented by basic types to calculate distances.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".