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
CarShare
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, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
pub fn all() -> Vec<AmenityType, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Display for AmenityType
impl Display for AmenityType
impl FromStr for AmenityType
impl FromStr for AmenityType
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<AmenityType, <AmenityType as FromStr>::Err>
fn from_str(s: &str) -> Result<AmenityType, <AmenityType as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreimpl IntoEnumIterator for AmenityType
impl IntoEnumIterator for AmenityType
impl Ord for AmenityType
impl Ord for AmenityType
fn cmp(&self, other: &AmenityType) -> Ordering
fn cmp(&self, other: &AmenityType) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialEq<AmenityType> for AmenityType
impl PartialEq<AmenityType> for AmenityType
fn eq(&self, other: &AmenityType) -> bool
fn eq(&self, other: &AmenityType) -> bool
impl PartialOrd<AmenityType> for AmenityType
impl PartialOrd<AmenityType> for AmenityType
fn partial_cmp(&self, other: &AmenityType) -> Option<Ordering>
fn partial_cmp(&self, other: &AmenityType) -> Option<Ordering>
1.0.0 · sourcefn 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 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.