pub trait MetricSpace<S: Field>: NormedVectorSpace<S> {
// Provided methods
fn distance_squared(self, other: Self) -> NonNegative<S> { ... }
fn distance(self, other: Self) -> NonNegative<S>
where S: Sqrt { ... }
}Expand description
Set of points with distance function
Provided Methods§
fn distance_squared(self, other: Self) -> NonNegative<S>
fn distance(self, other: Self) -> NonNegative<S>where
S: Sqrt,
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.