pub trait Distance<Other> {
// Required method
fn distance(&self, other: &Other) -> f32;
}Expand description
Trait for finding the distance between two objects
pub trait Distance<Other> {
// Required method
fn distance(&self, other: &Other) -> f32;
}Trait for finding the distance between two objects