Skip to main content

IsPolyline

Trait IsPolyline 

Source
pub trait IsPolyline<'a, T: IsPoint>: GeometricPrimitive + HasVertices<'a, Vertex = T> {
    // Required methods
    fn segment_count(&self) -> usize;
    fn length(&self) -> GeometryMeasure;
}
Expand description

A connected sequence of line segments backed by a point table.

Required Methods§

Source

fn segment_count(&self) -> usize

Returns the number of segments in the polyline.

Source

fn length(&self) -> GeometryMeasure

Returns the total path length.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§