Skip to main content

Module append

Module append 

Source
Expand description

append(&mut g, point) and the ring-index variant.

Mirrors boost::geometry::append from boost/geometry/algorithms/append.hpp. Boost ships a single overloaded append(...) that dispatches on the source geometry kind; the Rust port uses two free functions — append for the common linear cases and append_to_ring for the polygon ring-index overload — so each call site disambiguates without a defaulted argument (which Rust methods cannot express).

Functions§

append
Push point to the end of a Linestring or Ring.
append_to_ring
Push point onto the polygon’s outer ring (ring_index = None) or its ring_index-th interior ring (ring_index = Some(i)).