pub enum WorldRegionConversionError {
NotRepresented {
country: Country,
},
UnsupportedRegion {
region: WorldRegion,
},
Africa(AfricaRegionConversionError),
NorthAmerica(NorthAmericaRegionConversionError),
CentralAmerica(CentralAmericaRegionConversionError),
SouthAmerica(SouthAmericaRegionConversionError),
Aoa(AoaRegionConversionError),
Europe(EuropeRegionConversionError),
Asia(AsiaRegionConversionError),
}Variants§
NotRepresented
UnsupportedRegion
Fields
§
region: WorldRegionAfrica(AfricaRegionConversionError)
NorthAmerica(NorthAmericaRegionConversionError)
CentralAmerica(CentralAmericaRegionConversionError)
SouthAmerica(SouthAmericaRegionConversionError)
Aoa(AoaRegionConversionError)
Europe(EuropeRegionConversionError)
Asia(AsiaRegionConversionError)
Trait Implementations§
Source§impl Debug for WorldRegionConversionError
impl Debug for WorldRegionConversionError
Source§impl Display for WorldRegionConversionError
impl Display for WorldRegionConversionError
Source§impl From<AfricaRegionConversionError> for WorldRegionConversionError
impl From<AfricaRegionConversionError> for WorldRegionConversionError
Source§fn from(x: AfricaRegionConversionError) -> Self
fn from(x: AfricaRegionConversionError) -> Self
Converts to this type from the input type.
Source§impl From<AoaRegionConversionError> for WorldRegionConversionError
impl From<AoaRegionConversionError> for WorldRegionConversionError
Source§fn from(x: AoaRegionConversionError) -> Self
fn from(x: AoaRegionConversionError) -> Self
Converts to this type from the input type.
Source§impl From<AsiaRegionConversionError> for WorldRegionConversionError
impl From<AsiaRegionConversionError> for WorldRegionConversionError
Source§fn from(x: AsiaRegionConversionError) -> Self
fn from(x: AsiaRegionConversionError) -> Self
Converts to this type from the input type.
Source§impl From<CentralAmericaRegionConversionError> for WorldRegionConversionError
impl From<CentralAmericaRegionConversionError> for WorldRegionConversionError
Source§fn from(x: CentralAmericaRegionConversionError) -> Self
fn from(x: CentralAmericaRegionConversionError) -> Self
Converts to this type from the input type.
Source§impl From<EuropeRegionConversionError> for WorldRegionConversionError
impl From<EuropeRegionConversionError> for WorldRegionConversionError
Source§fn from(x: EuropeRegionConversionError) -> Self
fn from(x: EuropeRegionConversionError) -> Self
Converts to this type from the input type.
Source§impl From<NorthAmericaRegionConversionError> for WorldRegionConversionError
impl From<NorthAmericaRegionConversionError> for WorldRegionConversionError
Source§fn from(x: NorthAmericaRegionConversionError) -> Self
fn from(x: NorthAmericaRegionConversionError) -> Self
Converts to this type from the input type.
Source§impl From<SouthAmericaRegionConversionError> for WorldRegionConversionError
impl From<SouthAmericaRegionConversionError> for WorldRegionConversionError
Source§fn from(x: SouthAmericaRegionConversionError) -> Self
fn from(x: SouthAmericaRegionConversionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WorldRegionConversionError
impl RefUnwindSafe for WorldRegionConversionError
impl Send for WorldRegionConversionError
impl Sync for WorldRegionConversionError
impl Unpin for WorldRegionConversionError
impl UnwindSafe for WorldRegionConversionError
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> 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.