pub trait PolySplit<D>{
// Required methods
fn distance_to_point(&self, point: &Self) -> D;
fn distance_to_segment(
&self,
segment: (&Self, &Self),
) -> DistanceToSegmentResult<Self, D>;
}Expand description
PolySplit defines methods for types that can be used in polyline_split method.
Required Methods§
Sourcefn distance_to_point(&self, point: &Self) -> D
fn distance_to_point(&self, point: &Self) -> D
Sourcefn distance_to_segment(
&self,
segment: (&Self, &Self),
) -> DistanceToSegmentResult<Self, D>
fn distance_to_segment( &self, segment: (&Self, &Self), ) -> DistanceToSegmentResult<Self, D>
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.