pub enum Closure {
Open,
Closed,
}Expand description
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);Variants§
Open
Last point != first point — algorithms close the ring on the fly.
Mirrors boost::geometry::open (value 0) from
boost/geometry/core/closure.hpp.
Closed
Last point == first point — the ring carries the closing vertex explicitly.
Mirrors boost::geometry::closed (value 1) from
boost/geometry/core/closure.hpp. This is the Boost default
(traits::closure<G>::value = closed), and the default returned
by crate::Ring::closure.
Trait Implementations§
impl Copy for Closure
impl Eq for Closure
impl StructuralPartialEq for Closure
Auto Trait Implementations§
impl Freeze for Closure
impl RefUnwindSafe for Closure
impl Send for Closure
impl Sync for Closure
impl Unpin for Closure
impl UnsafeUnpin for Closure
impl UnwindSafe for Closure
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more