Trait EuclideanDistance

Source
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,

Source§

type Output = P

Source§

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

Implementors§