Struct map_model::OriginalRoad
source · pub struct OriginalRoad {
pub osm_way_id: WayID,
pub i1: NodeID,
pub i2: NodeID,
}
Expand description
Refers to a road segment between two nodes, using OSM IDs. Note OSM IDs are not stable over time and the relationship between a road/intersection and way/node isn’t 1:1 at all.
Fields§
§osm_way_id: WayID
§i1: NodeID
§i2: NodeID
Implementations§
source§impl OriginalRoad
impl OriginalRoad
Trait Implementations§
source§impl Clone for OriginalRoad
impl Clone for OriginalRoad
source§fn clone(&self) -> OriginalRoad
fn clone(&self) -> OriginalRoad
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OriginalRoad
impl Debug for OriginalRoad
source§impl<'de> Deserialize<'de> for OriginalRoad
impl<'de> Deserialize<'de> for OriginalRoad
source§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
source§impl Display for OriginalRoad
impl Display for OriginalRoad
source§impl Hash for OriginalRoad
impl Hash for OriginalRoad
source§impl Ord for OriginalRoad
impl Ord for OriginalRoad
source§fn cmp(&self, other: &OriginalRoad) -> Ordering
fn cmp(&self, other: &OriginalRoad) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for OriginalRoad
impl PartialEq for OriginalRoad
source§fn eq(&self, other: &OriginalRoad) -> bool
fn eq(&self, other: &OriginalRoad) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OriginalRoad
impl PartialOrd for OriginalRoad
source§fn partial_cmp(&self, other: &OriginalRoad) -> Option<Ordering>
fn partial_cmp(&self, other: &OriginalRoad) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for OriginalRoad
impl Serialize for OriginalRoad
impl Copy for OriginalRoad
impl Eq for OriginalRoad
impl StructuralPartialEq for OriginalRoad
Auto Trait Implementations§
impl Freeze for OriginalRoad
impl RefUnwindSafe for OriginalRoad
impl Send for OriginalRoad
impl Sync for OriginalRoad
impl Unpin for OriginalRoad
impl UnwindSafe for OriginalRoad
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.