pub fn length_dyn<S, Cs>(g: &DynGeometry<S, Cs>) -> Swhere
S: CoordinateScalar,
Cs: CoordinateSystem,
Cs::Family: SameAs<CartesianFamily> + DefaultLength<Cs::Family>,
CartesianLength: LengthStrategy<Linestring<Point<S, 2, Cs>>, Out = S>,
DefaultLengthStrategy<Linestring<Point<S, 2, Cs>>>: LengthStrategy<Linestring<Point<S, 2, Cs>>, Out = S> + Default,Expand description
Runtime-dispatched length.
Returns the polyline length for linear kinds (LineString,
MultiLineString), the recursive sum of member lengths for a
GeometryCollection, and 0 for every non-linear leaf kind —
matching Boost’s contract (length.hpp:75-80, plus the
geometry_collection_tag specialisation at :251-265).