Enum RoadRank
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
impl 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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.