Skip to main content

HasDistanceTo

Trait HasDistanceTo 

Source
pub trait HasDistanceTo<Rhs = Self> {
    // Required method
    fn distance_to(&self, other: &Rhs) -> GeometryMeasure;
}
Expand description

Computes a distance from self to another value.

Required Methods§

Source

fn distance_to(&self, other: &Rhs) -> GeometryMeasure

Returns the distance to other.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§