Enum map_model::objects::road::SideOfRoad
source · pub enum SideOfRoad {
Right,
Left,
}
Expand description
See https://wiki.openstreetmap.org/wiki/Forward_%26_backward,left%26_right.
Variants§
Trait Implementations§
source§impl Clone for SideOfRoad
impl Clone for SideOfRoad
source§fn clone(&self) -> SideOfRoad
fn clone(&self) -> SideOfRoad
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 SideOfRoad
impl Debug for SideOfRoad
source§impl<'de> Deserialize<'de> for SideOfRoad
impl<'de> Deserialize<'de> for SideOfRoad
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 Hash for SideOfRoad
impl Hash for SideOfRoad
source§impl Ord for SideOfRoad
impl Ord for SideOfRoad
source§fn cmp(&self, other: &SideOfRoad) -> Ordering
fn cmp(&self, other: &SideOfRoad) -> 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 SideOfRoad
impl PartialEq for SideOfRoad
source§fn eq(&self, other: &SideOfRoad) -> bool
fn eq(&self, other: &SideOfRoad) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SideOfRoad
impl PartialOrd for SideOfRoad
source§fn partial_cmp(&self, other: &SideOfRoad) -> Option<Ordering>
fn partial_cmp(&self, other: &SideOfRoad) -> 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 SideOfRoad
impl Serialize for SideOfRoad
impl Copy for SideOfRoad
impl Eq for SideOfRoad
impl StructuralPartialEq for SideOfRoad
Auto Trait Implementations§
impl Freeze for SideOfRoad
impl RefUnwindSafe for SideOfRoad
impl Send for SideOfRoad
impl Sync for SideOfRoad
impl Unpin for SideOfRoad
impl UnwindSafe for SideOfRoad
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.