Skip to main content

SegmentizeStrategy

Trait SegmentizeStrategy 

Source
pub trait SegmentizeStrategy<L> {
    type Output;

    // Required method
    fn segmentize(&self, line: &L, count: usize) -> Self::Output;
}
Expand description

Strategy for splitting a linestring into equal-length pieces.

Required Associated Types§

Source

type Output

Segmented output geometry.

Required Methods§

Source

fn segmentize(&self, line: &L, count: usize) -> Self::Output

Split line into count pieces.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<L, P> SegmentizeStrategy<L> for CartesianSegmentize
where L: Linestring<Point = P>, P: Point<Scalar = f64> + PointMut + Default + Copy, <P::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>, Pythagoras: DistanceStrategy<P, P, Out = f64>,

Source§

impl<L, P> SegmentizeStrategy<L> for Haversine
where L: Linestring<Point = P>, P: Point<Scalar = f64> + PointMut + Default + Copy, P::Cs: HasAngularUnits, <P::Cs as CoordinateSystem>::Family: SameAs<SphericalFamily>, Haversine: DistanceStrategy<P, P, Out = f64>,

Available on crate feature std only.