pub trait EnvelopeStrategy<G> {
type Output;
// Required method
fn envelope(&self, g: &G) -> Self::Output;
}Expand description
A strategy for computing the axis-aligned bounding box of a geometry.
Mirrors the per-CS envelope-strategy concept declared in
boost/geometry/strategies/envelope/services.hpp and refined per
coordinate system in strategies/envelope/{cartesian,spherical, geographic}.hpp. The Boost concept exposes a family of per-tag
sub-strategies (envelope::cartesian_point,
envelope::cartesian_box, …) keyed off the geometry’s tag; the
Rust analogue keeps that family as one per-kind strategy struct each
(EnvelopePoint, EnvelopeBox, …), selected by the tag-keyed
[EnvelopeStrategyForKind] picker.
§Associated items
Self::Output— the bounding-box type. For the Cartesian implementation this is alwaysgeometry_model::Box<G::Point>, matching Boost’sdefault_envelope_result<Geometry>::type(strategies/default_envelope_result.hpp).
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".