pub struct Operation {
pub operation: OperationType,
pub seg_id: SegmentId,
}Expand description
One side of a turn — the operation for one of the two source geometries.
Mirrors turn_operation in
boost/geometry/algorithms/detail/overlay/turn_info.hpp:52-58. The
fraction field (Boost’s segment_ratio) is the position of the
turn along its segment; the port stores it as a [0, 1] fraction
once enrichment (OVL2.5) needs it — the data-model task keeps only
the operation and the segment it belongs to.
Fields§
§operation: OperationTypeThe traversal role of this side. Boost’s
turn_operation::operation.
seg_id: SegmentIdThe segment this side sits on. Boost’s turn_operation::seg_id.
Implementations§
Trait Implementations§
impl Copy for Operation
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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