pub trait EuclideanDistance<T> {
    type Output;

    // Required method
    fn euclidean_distance(self, rhs: T) -> Self::Output;
}

Required Associated Types§

Required Methods§

source

fn euclidean_distance(self, rhs: T) -> Self::Output

Implementations on Foreign Types§

source§

impl<'a, const K: usize, P> EuclideanDistance<&'a [P; K]> for &'a [P; K]where P: PartialOrd + Mul<P, Output = P> + Add<P, Output = P> + Sub<P, Output = P> + Clone + Copy + Default + Distance<P, Output = P> + Square + Sized,

§

type Output = P

source§

fn euclidean_distance(self, rhs: &'a [P; K]) -> P

Implementors§