Struct traffic_signal_data::DirectedRoad [−][src]
pub struct DirectedRoad { pub osm_way_id: i64, pub osm_node1: i64, pub osm_node2: i64, pub is_forwards: bool, }
A road segment connecting two intersections, and a direction along the segment.
Fields
osm_way_id: i64
The ID of the OSM way representing the road.
osm_node1: i64
The ID of the OSM node at the start of this road segment.
osm_node2: i64
The ID of the OSM node at the end of this road segment.
is_forwards: bool
The direction along the road segment. See https://wiki.openstreetmap.org/wiki/Forward_%26_backward,left%26_right for details.
Trait Implementations
impl Clone for DirectedRoad
[src]
impl Clone for DirectedRoad
[src]fn clone(&self) -> DirectedRoad
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for DirectedRoad
[src]
impl<'de> Deserialize<'de> for DirectedRoad
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Ord for DirectedRoad
[src]
impl Ord for DirectedRoad
[src]impl PartialEq<DirectedRoad> for DirectedRoad
[src]
impl PartialEq<DirectedRoad> for DirectedRoad
[src]fn eq(&self, other: &DirectedRoad) -> bool
[src]
fn ne(&self, other: &DirectedRoad) -> bool
[src]
impl PartialOrd<DirectedRoad> for DirectedRoad
[src]
impl PartialOrd<DirectedRoad> for DirectedRoad
[src]fn partial_cmp(&self, other: &DirectedRoad) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl Serialize for DirectedRoad
[src]
impl Serialize for DirectedRoad
[src]