pub enum WorldRegion {
Africa(AfricaRegion),
Asia(AsiaRegion),
Europe(EuropeRegion),
NorthAmerica(NorthAmericaRegion),
SouthAmerica(SouthAmericaRegion),
CentralAmerica(CentralAmericaRegion),
AustraliaOceaniaAntarctica(AustraliaOceaniaAntarcticaRegion),
}Variants§
Africa(AfricaRegion)
Asia(AsiaRegion)
Europe(EuropeRegion)
NorthAmerica(NorthAmericaRegion)
SouthAmerica(SouthAmericaRegion)
CentralAmerica(CentralAmericaRegion)
AustraliaOceaniaAntarctica(AustraliaOceaniaAntarcticaRegion)
Trait Implementations§
Source§impl Abbreviation for WorldRegion
impl Abbreviation for WorldRegion
fn abbreviation(&self) -> &'static str
Source§impl Clone for WorldRegion
impl Clone for WorldRegion
Source§fn clone(&self) -> WorldRegion
fn clone(&self) -> WorldRegion
Returns a duplicate 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 WorldRegion
impl Debug for WorldRegion
Source§impl Default for WorldRegion
impl Default for WorldRegion
Source§impl<'de> Deserialize<'de> for WorldRegion
impl<'de> Deserialize<'de> for WorldRegion
Source§fn deserialize<D>(deserializer: D) -> Result<WorldRegion, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<WorldRegion, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for WorldRegion
impl Display for WorldRegion
Source§impl DownloadLink for WorldRegion
impl DownloadLink for WorldRegion
Source§fn download_link(&self) -> &str
fn download_link(&self) -> &str
Return the associated OSM PBF download link
Source§impl FileDownloader for WorldRegion
impl FileDownloader for WorldRegion
Source§fn find_file_locally_or_download_into<'life0, 'async_trait>(
&'life0 self,
directory: impl AsRef<Path> + Send + Sync + 'async_trait,
) -> Pin<Box<dyn Future<Output = Result<PathBuf, DownloadError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn find_file_locally_or_download_into<'life0, 'async_trait>(
&'life0 self,
directory: impl AsRef<Path> + Send + Sync + 'async_trait,
) -> Pin<Box<dyn Future<Output = Result<PathBuf, DownloadError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Obtain the associated PBF file locally, downloading if necessary.
By default, this uses the
find_or_download function provided by this crate.Source§impl From<AfricaRegion> for WorldRegion
impl From<AfricaRegion> for WorldRegion
Source§fn from(x: AfricaRegion) -> Self
fn from(x: AfricaRegion) -> Self
Converts to this type from the input type.
Source§impl From<AsiaRegion> for WorldRegion
impl From<AsiaRegion> for WorldRegion
Source§fn from(x: AsiaRegion) -> Self
fn from(x: AsiaRegion) -> Self
Converts to this type from the input type.
Source§impl From<AustraliaOceaniaAntarcticaRegion> for WorldRegion
impl From<AustraliaOceaniaAntarcticaRegion> for WorldRegion
Source§fn from(x: AustraliaOceaniaAntarcticaRegion) -> Self
fn from(x: AustraliaOceaniaAntarcticaRegion) -> Self
Converts to this type from the input type.
Source§impl From<CentralAmericaRegion> for WorldRegion
impl From<CentralAmericaRegion> for WorldRegion
Source§fn from(x: CentralAmericaRegion) -> Self
fn from(x: CentralAmericaRegion) -> Self
Converts to this type from the input type.
Source§impl From<EuropeRegion> for WorldRegion
impl From<EuropeRegion> for WorldRegion
Source§fn from(x: EuropeRegion) -> Self
fn from(x: EuropeRegion) -> Self
Converts to this type from the input type.
Source§impl From<NorthAmericaRegion> for WorldRegion
impl From<NorthAmericaRegion> for WorldRegion
Source§fn from(x: NorthAmericaRegion) -> Self
fn from(x: NorthAmericaRegion) -> Self
Converts to this type from the input type.
Source§impl From<SouthAmericaRegion> for WorldRegion
impl From<SouthAmericaRegion> for WorldRegion
Source§fn from(x: SouthAmericaRegion) -> Self
fn from(x: SouthAmericaRegion) -> Self
Converts to this type from the input type.
Source§impl From<USRegion> for WorldRegion
impl From<USRegion> for WorldRegion
Source§impl FromStr for WorldRegion
impl FromStr for WorldRegion
Source§impl Hash for WorldRegion
impl Hash for WorldRegion
Source§impl IntoEnumIterator for WorldRegion
impl IntoEnumIterator for WorldRegion
type Iterator = WorldRegionIter
fn iter() -> WorldRegionIter ⓘ
Source§impl Md5DownloadLink for WorldRegion
impl Md5DownloadLink for WorldRegion
Source§impl Ord for WorldRegion
impl Ord for WorldRegion
Source§fn cmp(&self, other: &WorldRegion) -> Ordering
fn cmp(&self, other: &WorldRegion) -> 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 WorldRegion
impl PartialEq for WorldRegion
Source§impl PartialOrd for WorldRegion
impl PartialOrd for WorldRegion
Source§impl Serialize for WorldRegion
Available on non-crate feature serde_abbreviation only.
impl Serialize for WorldRegion
Available on non-crate feature
serde_abbreviation only.Source§impl TryFrom<Country> for WorldRegion
impl TryFrom<Country> for WorldRegion
Source§impl TryFrom<WorldRegion> for Country
impl TryFrom<WorldRegion> for Country
Source§type Error = WorldRegionConversionError
type Error = WorldRegionConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<WorldRegion> for CountryCode
impl TryFrom<WorldRegion> for CountryCode
Source§type Error = WorldRegionConversionError
type Error = WorldRegionConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<WorldRegion> for Iso3166Alpha2
impl TryFrom<WorldRegion> for Iso3166Alpha2
Source§type Error = WorldRegionConversionError
type Error = WorldRegionConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<WorldRegion> for Iso3166Alpha3
impl TryFrom<WorldRegion> for Iso3166Alpha3
Source§type Error = WorldRegionConversionError
type Error = WorldRegionConversionError
The type returned in the event of a conversion error.
Source§impl TryFromAbbreviation for WorldRegion
impl TryFromAbbreviation for WorldRegion
Source§type Error = TryFromAbbreviationError
type Error = TryFromAbbreviationError
The associated error type returned upon failure.
Source§impl VariantNames for WorldRegion
impl VariantNames for WorldRegion
impl Copy for WorldRegion
impl Eq for WorldRegion
impl StructuralPartialEq for WorldRegion
Auto Trait Implementations§
impl Freeze for WorldRegion
impl RefUnwindSafe for WorldRegion
impl Send for WorldRegion
impl Sync for WorldRegion
impl Unpin for WorldRegion
impl UnwindSafe for WorldRegion
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.