[][src]Struct traffic_signal_data::DirectedRoad

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 Debug for DirectedRoad[src]

impl<'de> Deserialize<'de> for DirectedRoad[src]

impl Eq for DirectedRoad[src]

impl Ord for DirectedRoad[src]

impl PartialEq<DirectedRoad> for DirectedRoad[src]

impl PartialOrd<DirectedRoad> for DirectedRoad[src]

impl Serialize for DirectedRoad[src]

impl StructuralEq for DirectedRoad[src]

impl StructuralPartialEq for DirectedRoad[src]

Auto Trait Implementations

impl RefUnwindSafe for DirectedRoad

impl Send for DirectedRoad

impl Sync for DirectedRoad

impl Unpin for DirectedRoad

impl UnwindSafe for DirectedRoad

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.