[][src]Struct map_model::raw::OriginalRoad

pub struct OriginalRoad {
    pub osm_way_id: WayID,
    pub i1: NodeID,
    pub i2: NodeID,
}

A way to refer to roads across many maps and over time. Also trivial to relate with OSM to find upstream problems.

Fields

osm_way_id: WayIDi1: NodeIDi2: NodeID

Implementations

impl OriginalRoad[src]

pub fn new(way: i64, (i1, i2): (i64, i64)) -> OriginalRoad[src]

pub fn to_string_code(&self) -> String[src]

Prints the OriginalRoad in a way that can be copied to Rust code.

Trait Implementations

impl Clone for OriginalRoad[src]

impl Copy for OriginalRoad[src]

impl Debug for OriginalRoad[src]

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

impl Display for OriginalRoad[src]

impl Eq for OriginalRoad[src]

impl Hash for OriginalRoad[src]

impl Ord for OriginalRoad[src]

impl PartialEq<OriginalRoad> for OriginalRoad[src]

impl PartialOrd<OriginalRoad> for OriginalRoad[src]

impl Serialize for OriginalRoad[src]

impl StructuralEq for OriginalRoad[src]

impl StructuralPartialEq for OriginalRoad[src]

Auto Trait Implementations

impl RefUnwindSafe for OriginalRoad

impl Send for OriginalRoad

impl Sync for OriginalRoad

impl Unpin for OriginalRoad

impl UnwindSafe for OriginalRoad

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> CallHasher for T where
    T: Hash

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<N> NodeTrait for N where
    N: Copy + Ord + Hash
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,