pub enum Component {
Show 21 variants
Attention,
HouseNumber,
House,
Road,
Village,
Suburb,
City,
County,
CountyCode,
Postcode,
StateDistrict,
State,
StateCode,
Region,
Island,
Neighbourhood,
Country,
CountryCode,
Continent,
Town,
CityDistrict,
}Expand description
A Component is a field of a Place
Variants§
Attention
Leftover field. Can hold a name of a POI, name of building, … will often be display first
HouseNumber
house_number of the place
House
house of the place
Road
road of the place
Village
village of the place
Suburb
suburb of the place
City
city of the place
County
county of the place
CountyCode
county_code of the place
Postcode
postcode of the place
StateDistrict
state_district of the place
State
state of the place
StateCode
state_code of the place
Region
region of the place
Island
island of the place
Neighbourhood
neighbourhood of the place
Country
country of the place
CountryCode
country_code of the place
Continent
continent of the place
Town
town of the place
CityDistrict
city_district of the place
Trait Implementations§
Source§impl IntoEnumIterator for Component
impl IntoEnumIterator for Component
impl Copy for Component
impl Eq for Component
impl StructuralPartialEq for Component
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnwindSafe for Component
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,
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more