pub fn perimeter<P>(
p: &P,
) -> <DefaultPerimeterStrategy<P> as LengthStrategy<P::Ring>>::Outwhere
P: Polygon,
<<<P as Geometry>::Point as Point>::Cs as CoordinateSystem>::Family: DefaultPerimeter<<<<P as Geometry>::Point as Point>::Cs as CoordinateSystem>::Family>,
DefaultPerimeterStrategy<P>: LengthStrategy<P::Ring> + Default,Expand description
Perimeter of a polygon: length of the exterior ring plus the sum of the lengths of the interior rings.
Mirrors boost::geometry::perimeter from
boost/geometry/algorithms/perimeter.hpp:230-236.