Trait Distance

Source
pub trait Distance<F: Float> {
    // Required method
    fn distance(&self, other: &Self) -> F;
}

Required Methods§

Source

fn distance(&self, other: &Self) -> F

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.

Implementations on Foreign Types§

Source§

impl<F: Float> Distance<F> for f32

Source§

fn distance(&self, other: &Self) -> F

Source§

impl<F: Float> Distance<F> for f64

Source§

fn distance(&self, other: &Self) -> F

Implementors§