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