Skip to main content

DefaultPerimeter

Trait DefaultPerimeter 

Source
pub trait DefaultPerimeter<Family> {
    type Strategy: Default;
}
Expand description

“Which perimeter strategy do we pick by default for this CS family?”

Mirrors the default-strategy resolution used by boost::geometry::perimeter in algorithms/perimeter.hpp:115-159.

Required Associated Types§

Source

type Strategy: Default

The perimeter strategy chosen for this family.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl DefaultPerimeter<CartesianFamily> for CartesianFamily

Selects Boost’s Cartesian length strategy for perimeter dispatch.

Mirrors strategies/length/cartesian.hpp:42-49.

Source§

impl DefaultPerimeter<GeographicFamily> for GeographicFamily

Selects Boost’s geographic length strategy for perimeter dispatch.

Mirrors strategies/length/geographic.hpp:61-68.

Source§

impl DefaultPerimeter<SphericalFamily> for SphericalFamily

Selects Boost’s spherical length strategy for perimeter dispatch.

Mirrors strategies/length/spherical.hpp:57-64.

Implementors§