Struct map_model::objects::road::RoadSideID
source · pub struct RoadSideID {
pub road: RoadID,
pub side: SideOfRoad,
}
Fields§
§road: RoadID
§side: SideOfRoad
Implementations§
source§impl RoadSideID
impl RoadSideID
pub fn get_outermost_lane(self, map: &Map) -> &Lane
pub fn other_side(self) -> RoadSideID
Trait Implementations§
source§impl Clone for RoadSideID
impl Clone for RoadSideID
source§fn clone(&self) -> RoadSideID
fn clone(&self) -> RoadSideID
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 RoadSideID
impl Debug for RoadSideID
source§impl<'de> Deserialize<'de> for RoadSideID
impl<'de> Deserialize<'de> for RoadSideID
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 RoadSideID
impl Hash for RoadSideID
source§impl Ord for RoadSideID
impl Ord for RoadSideID
source§fn cmp(&self, other: &RoadSideID) -> Ordering
fn cmp(&self, other: &RoadSideID) -> 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 RoadSideID
impl PartialEq for RoadSideID
source§fn eq(&self, other: &RoadSideID) -> bool
fn eq(&self, other: &RoadSideID) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RoadSideID
impl PartialOrd for RoadSideID
source§fn partial_cmp(&self, other: &RoadSideID) -> Option<Ordering>
fn partial_cmp(&self, other: &RoadSideID) -> 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 RoadSideID
impl Serialize for RoadSideID
impl Copy for RoadSideID
impl Eq for RoadSideID
impl StructuralPartialEq for RoadSideID
Auto Trait Implementations§
impl Freeze for RoadSideID
impl RefUnwindSafe for RoadSideID
impl Send for RoadSideID
impl Sync for RoadSideID
impl Unpin for RoadSideID
impl UnwindSafe for RoadSideID
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.