pub trait NearestPoint<M: Clone + Default> {
// Required methods
fn nearest_point<M2: Clone + Default>(
&self,
b: &VectorPoint<M2>,
) -> Option<&VectorPoint<M>>;
fn nearest_point_mut<M2: Clone + Default>(
&mut self,
b: &VectorPoint<M2>,
) -> Option<&mut VectorPoint<M>>;
}Expand description
Get the nearest of a collection of VectorPoint.
This trait is implemented for:
VectorFeatureVectorGeometryVectorPointGeometryVectorMultiPointGeometryVectorMultiLineStringGeometryVectorMultiPolygonGeometryVectorMultiPointVectorMultiLineStringVectorMultiPolygon
And all specific geometries of the above enums
Required Methods§
Sourcefn nearest_point<M2: Clone + Default>(
&self,
b: &VectorPoint<M2>,
) -> Option<&VectorPoint<M>>
fn nearest_point<M2: Clone + Default>( &self, b: &VectorPoint<M2>, ) -> Option<&VectorPoint<M>>
Get the nearest of a collection of VectorPoint
Sourcefn nearest_point_mut<M2: Clone + Default>(
&mut self,
b: &VectorPoint<M2>,
) -> Option<&mut VectorPoint<M>>
fn nearest_point_mut<M2: Clone + Default>( &mut self, b: &VectorPoint<M2>, ) -> Option<&mut VectorPoint<M>>
Get the mutable nearest of a collection of VectorPoint
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.