pub enum LaneType {
Driving,
Parking,
Sidewalk,
Shoulder,
Biking,
Bus,
SharedLeftTurn,
Construction,
LightRail,
Buffer(BufferType),
Footway,
SharedUse,
}
Variants§
Driving
Parking
Sidewalk
Shoulder
Biking
Bus
Construction
LightRail
Buffer(BufferType)
Footway
Some kind of pedestrian-only path unassociated with a road
Some kind of shared pedestrian+bicycle space. May be associated with a road or not. Unclear which mode has effective priority.
Implementations§
§impl LaneType
impl LaneType
pub fn is_for_moving_vehicles(self) -> bool
pub fn supports_any_movement(self) -> bool
pub fn is_tagged_by_lanes_suffix(&self) -> bool
pub fn is_tagged_by_lanes_suffix(&self) -> bool
Determines if the lane is a travel lane that is represented in OSM *:lanes
tags.
Note that the lanes
tag counts car driving lanes, excluding bike lanes, whereas the
:lanes
suffix specifies that each lane, including bike lanes, should have a value between
|
s. This function identifies the latter kind.
pub fn is_roadway(&self) -> bool
pub fn is_roadway(&self) -> bool
Determines if the lane is part of the roadway, the contiguous sealed surface that OSM mappers consider the “road”.
pub fn is_walkable(self) -> bool
pub fn traffic_class(&self) -> Option<TrafficClass>
pub fn traffic_class(&self) -> Option<TrafficClass>
The most significant class of traffic that travels in this lane.
pub fn describe(self) -> &'static str
pub fn short_name(self) -> &'static str
pub fn from_short_name(x: &str) -> Option<LaneType>
Trait Implementations§
§impl<'de> Deserialize<'de> for LaneType
impl<'de> Deserialize<'de> for LaneType
§fn deserialize<__D>(
__deserializer: __D
) -> Result<LaneType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<LaneType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Ord for LaneType
impl Ord for LaneType
§impl PartialOrd for LaneType
impl PartialOrd for LaneType
§fn partial_cmp(&self, other: &LaneType) -> Option<Ordering>
fn partial_cmp(&self, other: &LaneType) -> 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 more§impl Serialize for LaneType
impl Serialize for LaneType
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for LaneType
impl Eq for LaneType
impl StructuralPartialEq for LaneType
Auto Trait Implementations§
impl Freeze for LaneType
impl RefUnwindSafe for LaneType
impl Send for LaneType
impl Sync for LaneType
impl Unpin for LaneType
impl UnwindSafe for LaneType
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.