pub trait Distance: Point {
// Required methods
fn l1_distance(self, other: Self) -> Self::Scalar;
fn l2_distance_squared(self, other: Self) -> Self::Scalar;
}Required Methods§
Sourcefn l1_distance(self, other: Self) -> Self::Scalar
fn l1_distance(self, other: Self) -> Self::Scalar
The L1 distance between points.
Sourcefn l2_distance_squared(self, other: Self) -> Self::Scalar
fn l2_distance_squared(self, other: Self) -> Self::Scalar
The square of the L2 (Euclidean) distance between points.
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.