Struct traffic_signal_data::Turn [−][src]
pub struct Turn {
pub from: DirectedRoad,
pub to: DirectedRoad,
pub intersection_osm_node_id: i64,
pub is_crosswalk: bool,
}
Expand description
A movement through an intersection.
Movements over crosswalks are a little confusing to understand. See the crosswalk_turns.png diagram in this repository for some clarification.
Fields
from: DirectedRoad
The movement begins at the end of this road segment.
to: DirectedRoad
The movement ends at the beginning of this road segment.
intersection_osm_node_id: i64
The ID of the OSM node representing the intersection. This is redundant for turns performed by vehicles, but is necessary for disambiguating the 4 cases of crosswalks.
is_crosswalk: bool
True iff the movement is along a crosswalk. Note that moving over a crosswalk has a
different Turn
for each direction.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Turn
impl UnwindSafe for Turn
Blanket Implementations
Mutably borrows from an owned value. Read more