1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! The [`Closure`] enum: whether a ring repeats its first point as
//! its last.
//!
//! Mirrors `boost::geometry::closure_selector` from
//! `boost/geometry/core/closure.hpp`. The Rust port drops the
//! `closure_undetermined` variant — Boost itself marks it
//! "(Not yet implemented)" in the same header and no algorithm in
//! the C++ kernel relies on it. If a future task needs the
//! undetermined variant it can be added without breaking the
//! existing two-variant API by introducing a new wrapper type.
/// Whether a ring repeats its first point as its last.
///
/// Mirrors `boost::geometry::closure_selector` from
/// `boost/geometry/core/closure.hpp`.
///
/// # Examples
///
/// ```
/// use geometry_trait::Closure;
/// assert_ne!(Closure::Open, Closure::Closed);
/// ```