pub trait PointDist {
// Required method
fn dist(&self, other: &Self) -> f64;
}Expand description
A point capable of computing the straight-line distance between itself and another point of the same type.
Required Methods§
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.