pub trait TspDistancewhere
    Self: Sized,{
    // Required method
    fn distance(&self, other: &Self) -> f64;

    // Provided method
    fn total(objects: ArrayView1<'_, Self>, paths: ArrayView1<'_, usize>) -> f64 { ... }
}

Required Methods§

source

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

Provided Methods§

source

fn total(objects: ArrayView1<'_, Self>, paths: ArrayView1<'_, usize>) -> f64

Implementors§