pub trait Point {
// Required method
fn dist(&self, other: &Self) -> f64;
// Provided method
fn dist_lower_bound(&self, other: &Self) -> f64 { ... }
}Expand description
A point in some (metric) space.
Required Methods§
Provided Methods§
Sourcefn dist_lower_bound(&self, other: &Self) -> f64
fn dist_lower_bound(&self, other: &Self) -> f64
Compute an estimate of the distance from self to other.
This should be less than or equal to self.dist(other) or
else algorithms may return unexpected results.
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.