pub enum CountryAlpha2 {
Show 249 variants AF, AL, AQ, DZ, AS, AD, AO, AG, AZ, AR, AU, AT, BS, BH, BD, AM, BB, BE, BM, BT, BO, BA, BW, BV, BR, BZ, IO, SB, VG, BN, BG, MM, BI, BY, KH, CM, CA, CV, KY, CF, LK, TD, CL, CN, TW, CX, CC, CO, KM, YT, CG, CD, CK, CR, HR, CU, CY, CZ, BJ, DK, DM, DO, EC, SV, GQ, ER, ET, EE, FO, FK, GS, FJ, FI, AX, FR, GF, PF, TF, DJ, GA, GE, GM, PS, DE, GH, GI, KI, GR, GL, GD, GP, GU, GT, GN, GY, HT, HM, VA, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IL, IT, CI, JM, JP, KZ, JO, KE, KP, KR, KW, KG, LA, LB, LS, LV, LR, LY, LI, LT, LU, MO, MG, MW, MY, MV, ML, MT, MQ, MR, MU, MX, MC, MN, MD, ME, MS, MA, MZ, OM, NA, NR, NP, NL, CW, AW, SX, BQ, NC, VU, NZ, NI, NE, NG, NU, NF, NO, MP, UM, FM, MH, PW, PK, PA, PG, PY, PE, PH, PN, PL, PT, GW, TL, PR, QA, RE, RO, RU, RW, BL, SH, KN, LC, AI, MF, PM, VC, SM, ST, SA, SN, RS, SC, SL, SG, SK, VN, SI, SO, ZA, ZW, ES, SS, SD, EH, SR, SJ, SZ, SE, CH, SY, TJ, TH, TG, TK, TO, AE, TN, TT, TR, TM, TC, TV, UG, UA, MK, EG, GB, GG, JE, IM, TZ, US, VI, BF, UY, UZ, VE, WF, WS, YE, ZM,
}

Variants§

§

AF

§

AL

§

AQ

§

DZ

§

AS

§

AD

§

AO

§

AG

§

AZ

§

AR

§

AU

§

AT

§

BS

§

BH

§

BD

§

AM

§

BB

§

BE

§

BM

§

BT

§

BO

§

BA

§

BW

§

BV

§

BR

§

BZ

§

IO

§

SB

§

VG

§

BN

§

BG

§

MM

§

BI

§

BY

§

KH

§

CM

§

CA

§

CV

§

KY

§

CF

§

LK

§

TD

§

CL

§

CN

§

TW

§

CX

§

CC

§

CO

§

KM

§

YT

§

CG

§

CD

§

CK

§

CR

§

HR

§

CU

§

CY

§

CZ

§

BJ

§

DK

§

DM

§

DO

§

EC

§

SV

§

GQ

§

ER

§

ET

§

EE

§

FO

§

FK

§

GS

§

FJ

§

FI

§

AX

§

FR

§

GF

§

PF

§

TF

§

DJ

§

GA

§

GE

§

GM

§

PS

§

DE

§

GH

§

GI

§

KI

§

GR

§

GL

§

GD

§

GP

§

GU

§

GT

§

GN

§

GY

§

HT

§

HM

§

VA

§

HN

§

HK

§

HU

§

IS

§

IN

§

ID

§

IR

§

IQ

§

IE

§

IL

§

IT

§

CI

§

JM

§

JP

§

KZ

§

JO

§

KE

§

KP

§

KR

§

KW

§

KG

§

LA

§

LB

§

LS

§

LV

§

LR

§

LY

§

LI

§

LT

§

LU

§

MO

§

MG

§

MW

§

MY

§

MV

§

ML

§

MT

§

MQ

§

MR

§

MU

§

MX

§

MC

§

MN

§

MD

§

ME

§

MS

§

MA

§

MZ

§

OM

§

NA

§

NR

§

NP

§

NL

§

CW

§

AW

§

SX

§

BQ

§

NC

§

VU

§

NZ

§

NI

§

NE

§

NG

§

NU

§

NF

§

NO

§

MP

§

UM

§

FM

§

MH

§

PW

§

PK

§

PA

§

PG

§

PY

§

PE

§

PH

§

PN

§

PL

§

PT

§

GW

§

TL

§

PR

§

QA

§

RE

§

RO

§

RU

§

RW

§

BL

§

SH

§

KN

§

LC

§

AI

§

MF

§

PM

§

VC

§

SM

§

ST

§

SA

§

SN

§

RS

§

SC

§

SL

§

SG

§

SK

§

VN

§

SI

§

SO

§

ZA

§

ZW

§

ES

§

SS

§

SD

§

EH

§

SR

§

SJ

§

SZ

§

SE

§

CH

§

SY

§

TJ

§

TH

§

TG

§

TK

§

TO

§

AE

§

TN

§

TT

§

TR

§

TM

§

TC

§

TV

§

UG

§

UA

§

MK

§

EG

§

GB

§

GG

§

JE

§

IM

§

TZ

§

US

§

VI

§

BF

§

UY

§

UZ

§

VE

§

WF

§

WS

§

YE

§

ZM

Trait Implementations§

source§

impl Clone for CountryAlpha2

source§

fn clone(&self) -> CountryAlpha2

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CountryAlpha2

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for CountryAlpha2

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<CountryAlpha2> for Country

source§

fn from(value: CountryAlpha2) -> Self

Converts to this type from the input type.
source§

impl From<CountryAlpha2> for CountryAlpha3

source§

fn from(value: CountryAlpha2) -> Self

Converts to this type from the input type.
source§

impl From<CountryAlpha2> for u16

source§

fn from(value: CountryAlpha2) -> Self

Converts to this type from the input type.
source§

impl From<CountryAlpha3> for CountryAlpha2

source§

fn from(value: CountryAlpha3) -> Self

Converts to this type from the input type.
source§

impl FromStr for CountryAlpha2

§

type Err = ParseError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for CountryAlpha2

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq<CountryAlpha2> for CountryAlpha2

source§

fn eq(&self, other: &CountryAlpha2) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<u16> for CountryAlpha2

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: u16) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for CountryAlpha2

source§

impl Eq for CountryAlpha2

source§

impl StructuralEq for CountryAlpha2

source§

impl StructuralPartialEq for CountryAlpha2

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoResult<T> for T

§

type Err = Infallible

source§

fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.