Enum map_model::AmenityType
source · pub enum AmenityType {
Show 28 variants
Bank,
Bar,
Beauty,
Bike,
Cafe,
CarRepair,
CarShare,
Childcare,
ConvenienceStore,
Culture,
Exercise,
FastFood,
Food,
GreenSpace,
Hotel,
Laundry,
Library,
Medical,
Pet,
Playground,
Pool,
PostOffice,
Religious,
School,
Shopping,
Supermarket,
Tourism,
University,
}
Expand description
Businesses are categorized into one of these types.
Variants§
Bank
Bar
Beauty
Bike
Cafe
CarRepair
Childcare
ConvenienceStore
Culture
Exercise
FastFood
Food
GreenSpace
Hotel
Laundry
Library
Medical
Pet
Playground
Pool
PostOffice
Religious
School
Shopping
Supermarket
Tourism
University
Implementations§
source§impl AmenityType
impl AmenityType
sourcepub fn all() -> Vec<AmenityType>
pub fn all() -> Vec<AmenityType>
All types of amenities, in alphabetical order.
sourcepub fn categorize(a: &str) -> Option<AmenityType>
pub fn categorize(a: &str) -> Option<AmenityType>
Categorize an OSM amenity tag.
Trait Implementations§
source§impl Clone for AmenityType
impl Clone for AmenityType
source§fn clone(&self) -> AmenityType
fn clone(&self) -> AmenityType
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 AmenityType
impl Debug for AmenityType
source§impl Display for AmenityType
impl Display for AmenityType
source§impl FromStr for AmenityType
impl FromStr for AmenityType
source§impl IntoEnumIterator for AmenityType
impl IntoEnumIterator for AmenityType
type Iterator = AmenityTypeIter
fn iter() -> AmenityTypeIter
source§impl Ord for AmenityType
impl Ord for AmenityType
source§fn cmp(&self, other: &AmenityType) -> Ordering
fn cmp(&self, other: &AmenityType) -> 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 AmenityType
impl PartialEq for AmenityType
source§fn eq(&self, other: &AmenityType) -> bool
fn eq(&self, other: &AmenityType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AmenityType
impl PartialOrd for AmenityType
source§fn partial_cmp(&self, other: &AmenityType) -> Option<Ordering>
fn partial_cmp(&self, other: &AmenityType) -> 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 TryFrom<&str> for AmenityType
impl TryFrom<&str> for AmenityType
impl Copy for AmenityType
impl Eq for AmenityType
impl StructuralPartialEq for AmenityType
Auto Trait Implementations§
impl Freeze for AmenityType
impl RefUnwindSafe for AmenityType
impl Send for AmenityType
impl Sync for AmenityType
impl Unpin for AmenityType
impl UnwindSafe for AmenityType
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.