pub trait Metric<T> {
// Required methods
fn distance(&self, point1: &[T], point2: &[T]) -> T;
fn distance_squared(&self, point1: &[T], point2: &[T]) -> T;
}pub trait Metric<T> {
// Required methods
fn distance(&self, point1: &[T], point2: &[T]) -> T;
fn distance_squared(&self, point1: &[T], point2: &[T]) -> T;
}