Enum map_model::AmenityType
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§
§impl AmenityType
impl AmenityType
pub fn all() -> Vec<AmenityType>
pub fn all() -> Vec<AmenityType>
All types of amenities, in alphabetical order.
pub fn categorize(a: &str) -> Option<AmenityType>
pub fn categorize(a: &str) -> Option<AmenityType>
Categorize an OSM amenity tag.
Trait Implementations§
§impl Clone for AmenityType
impl Clone for AmenityType
§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 more§impl Debug for AmenityType
impl Debug for AmenityType
§impl Display for AmenityType
impl Display for AmenityType
§impl FromStr for AmenityType
impl FromStr for AmenityType
§impl Ord for AmenityType
impl Ord for AmenityType
§impl PartialEq for AmenityType
impl PartialEq for AmenityType
§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 ==
.§impl PartialOrd for AmenityType
impl PartialOrd for AmenityType
§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 more§impl TryFrom<&str> for AmenityType
impl TryFrom<&str> for AmenityType
impl Copy for AmenityType
impl Eq for AmenityType
impl StructuralEq for AmenityType
impl StructuralPartialEq for AmenityType
Auto Trait Implementations§
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> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.