Skip to main content

blockworx/widget/
segmentkind.rs

1use crate::edit::create::PathOrdinal;
2
3/// Which leg of a route a solved point belongs to. Waypoints are named by
4/// their position in the polyline — the document holds them as an ordered
5/// list, so the ordinal *is* the identity.
6#[derive(Copy, Clone, Debug, PartialEq)]
7pub enum SegmentKind {
8    StartToWaypoint(PathOrdinal),
9    WaypointToWaypoint(PathOrdinal, PathOrdinal),
10    WaypointToEnd(PathOrdinal),
11    StartToEnd,
12}