pub enum RoadRank {
Local,
Arterial,
Highway,
}
Variants§
Implementations§
§impl RoadRank
impl RoadRank
pub fn from_highway(hwy: &str) -> RoadRank
pub fn detailed_from_highway(hwy: &str) -> usize
pub fn detailed_from_highway(hwy: &str) -> usize
Larger number means a bigger road, according to https://wiki.openstreetmap.org/wiki/Key:highway
Trait Implementations§
§impl Ord for RoadRank
impl Ord for RoadRank
§impl PartialOrd for RoadRank
impl PartialOrd for RoadRank
§fn partial_cmp(&self, other: &RoadRank) -> Option<Ordering>
fn partial_cmp(&self, other: &RoadRank) -> 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 moreimpl Copy for RoadRank
impl Eq for RoadRank
impl StructuralPartialEq for RoadRank
Auto Trait Implementations§
impl Freeze for RoadRank
impl RefUnwindSafe for RoadRank
impl Send for RoadRank
impl Sync for RoadRank
impl Unpin for RoadRank
impl UnwindSafe for RoadRank
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.