Trait Distance

Source
pub trait Distance<T> {
    type Output;

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

Required Associated Types§

Required Methods§

Source

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

Implementors§

Source§

impl<P> Distance<P> for P
where P: PartialOrd + Mul<P, Output = P> + Add<P, Output = P> + Sub<P, Output = P> + Clone + Copy + Default,