Skip to main content

length_with

Function length_with 

Source
pub fn length_with<G, S>(g: &G, s: S) -> S::Out
where G: Geometry, S: LengthStrategy<G>,
Expand description

Length of a linestring using an explicitly supplied strategy.

Mirrors the length(g, strategy) overload at boost/geometry/algorithms/length.hpp. Taking the strategy by value matches the by-value call shape of crate::distance_with; concrete strategies are zero-sized or small Copy configuration objects, so this monomorphises into nothing.