CountryAlpha2

Enum CountryAlpha2 

Source
pub enum CountryAlpha2 {
Show 249 variants AF = 0, AL = 1, AQ = 2, DZ = 3, AS = 4, AD = 5, AO = 6, AG = 7, AZ = 8, AR = 9, AU = 10, AT = 11, BS = 12, BH = 13, BD = 14, AM = 15, BB = 16, BE = 17, BM = 18, BT = 19, BO = 20, BA = 21, BW = 22, BV = 23, BR = 24, BZ = 25, IO = 26, SB = 27, VG = 28, BN = 29, BG = 30, MM = 31, BI = 32, BY = 33, KH = 34, CM = 35, CA = 36, CV = 37, KY = 38, CF = 39, LK = 40, TD = 41, CL = 42, CN = 43, TW = 44, CX = 45, CC = 46, CO = 47, KM = 48, YT = 49, CG = 50, CD = 51, CK = 52, CR = 53, HR = 54, CU = 55, CY = 56, CZ = 57, BJ = 58, DK = 59, DM = 60, DO = 61, EC = 62, SV = 63, GQ = 64, ER = 65, ET = 66, EE = 67, FO = 68, FK = 69, GS = 70, FJ = 71, FI = 72, AX = 73, FR = 74, GF = 75, PF = 76, TF = 77, DJ = 78, GA = 79, GE = 80, GM = 81, PS = 82, DE = 83, GH = 84, GI = 85, KI = 86, GR = 87, GL = 88, GD = 89, GP = 90, GU = 91, GT = 92, GN = 93, GY = 94, HT = 95, HM = 96, VA = 97, HN = 98, HK = 99, HU = 100, IS = 101, IN = 102, ID = 103, IR = 104, IQ = 105, IE = 106, IL = 107, IT = 108, CI = 109, JM = 110, JP = 111, KZ = 112, JO = 113, KE = 114, KP = 115, KR = 116, KW = 117, KG = 118, LA = 119, LB = 120, LS = 121, LV = 122, LR = 123, LY = 124, LI = 125, LT = 126, LU = 127, MO = 128, MG = 129, MW = 130, MY = 131, MV = 132, ML = 133, MT = 134, MQ = 135, MR = 136, MU = 137, MX = 138, MC = 139, MN = 140, MD = 141, ME = 142, MS = 143, MA = 144, MZ = 145, OM = 146, NA = 147, NR = 148, NP = 149, NL = 150, CW = 151, AW = 152, SX = 153, BQ = 154, NC = 155, VU = 156, NZ = 157, NI = 158, NE = 159, NG = 160, NU = 161, NF = 162, NO = 163, MP = 164, UM = 165, FM = 166, MH = 167, PW = 168, PK = 169, PA = 170, PG = 171, PY = 172, PE = 173, PH = 174, PN = 175, PL = 176, PT = 177, GW = 178, TL = 179, PR = 180, QA = 181, RE = 182, RO = 183, RU = 184, RW = 185, BL = 186, SH = 187, KN = 188, LC = 189, AI = 190, MF = 191, PM = 192, VC = 193, SM = 194, ST = 195, SA = 196, SN = 197, RS = 198, SC = 199, SL = 200, SG = 201, SK = 202, VN = 203, SI = 204, SO = 205, ZA = 206, ZW = 207, ES = 208, SS = 209, SD = 210, EH = 211, SR = 212, SJ = 213, SZ = 214, SE = 215, CH = 216, SY = 217, TJ = 218, TH = 219, TG = 220, TK = 221, TO = 222, AE = 223, TN = 224, TT = 225, TR = 226, TM = 227, TC = 228, TV = 229, UG = 230, UA = 231, MK = 232, EG = 233, GB = 234, GG = 235, JE = 236, IM = 237, TZ = 238, US = 239, VI = 240, BF = 241, UY = 242, UZ = 243, VE = 244, WF = 245, WS = 246, YE = 247, ZM = 248,
}

Variants§

§

AF = 0

§

AL = 1

§

AQ = 2

§

DZ = 3

§

AS = 4

§

AD = 5

§

AO = 6

§

AG = 7

§

AZ = 8

§

AR = 9

§

AU = 10

§

AT = 11

§

BS = 12

§

BH = 13

§

BD = 14

§

AM = 15

§

BB = 16

§

BE = 17

§

BM = 18

§

BT = 19

§

BO = 20

§

BA = 21

§

BW = 22

§

BV = 23

§

BR = 24

§

BZ = 25

§

IO = 26

§

SB = 27

§

VG = 28

§

BN = 29

§

BG = 30

§

MM = 31

§

BI = 32

§

BY = 33

§

KH = 34

§

CM = 35

§

CA = 36

§

CV = 37

§

KY = 38

§

CF = 39

§

LK = 40

§

TD = 41

§

CL = 42

§

CN = 43

§

TW = 44

§

CX = 45

§

CC = 46

§

CO = 47

§

KM = 48

§

YT = 49

§

CG = 50

§

CD = 51

§

CK = 52

§

CR = 53

§

HR = 54

§

CU = 55

§

CY = 56

§

CZ = 57

§

BJ = 58

§

DK = 59

§

DM = 60

§

DO = 61

§

EC = 62

§

SV = 63

§

GQ = 64

§

ER = 65

§

ET = 66

§

EE = 67

§

FO = 68

§

FK = 69

§

GS = 70

§

FJ = 71

§

FI = 72

§

AX = 73

§

FR = 74

§

GF = 75

§

PF = 76

§

TF = 77

§

DJ = 78

§

GA = 79

§

GE = 80

§

GM = 81

§

PS = 82

§

DE = 83

§

GH = 84

§

GI = 85

§

KI = 86

§

GR = 87

§

GL = 88

§

GD = 89

§

GP = 90

§

GU = 91

§

GT = 92

§

GN = 93

§

GY = 94

§

HT = 95

§

HM = 96

§

VA = 97

§

HN = 98

§

HK = 99

§

HU = 100

§

IS = 101

§

IN = 102

§

ID = 103

§

IR = 104

§

IQ = 105

§

IE = 106

§

IL = 107

§

IT = 108

§

CI = 109

§

JM = 110

§

JP = 111

§

KZ = 112

§

JO = 113

§

KE = 114

§

KP = 115

§

KR = 116

§

KW = 117

§

KG = 118

§

LA = 119

§

LB = 120

§

LS = 121

§

LV = 122

§

LR = 123

§

LY = 124

§

LI = 125

§

LT = 126

§

LU = 127

§

MO = 128

§

MG = 129

§

MW = 130

§

MY = 131

§

MV = 132

§

ML = 133

§

MT = 134

§

MQ = 135

§

MR = 136

§

MU = 137

§

MX = 138

§

MC = 139

§

MN = 140

§

MD = 141

§

ME = 142

§

MS = 143

§

MA = 144

§

MZ = 145

§

OM = 146

§

NA = 147

§

NR = 148

§

NP = 149

§

NL = 150

§

CW = 151

§

AW = 152

§

SX = 153

§

BQ = 154

§

NC = 155

§

VU = 156

§

NZ = 157

§

NI = 158

§

NE = 159

§

NG = 160

§

NU = 161

§

NF = 162

§

NO = 163

§

MP = 164

§

UM = 165

§

FM = 166

§

MH = 167

§

PW = 168

§

PK = 169

§

PA = 170

§

PG = 171

§

PY = 172

§

PE = 173

§

PH = 174

§

PN = 175

§

PL = 176

§

PT = 177

§

GW = 178

§

TL = 179

§

PR = 180

§

QA = 181

§

RE = 182

§

RO = 183

§

RU = 184

§

RW = 185

§

BL = 186

§

SH = 187

§

KN = 188

§

LC = 189

§

AI = 190

§

MF = 191

§

PM = 192

§

VC = 193

§

SM = 194

§

ST = 195

§

SA = 196

§

SN = 197

§

RS = 198

§

SC = 199

§

SL = 200

§

SG = 201

§

SK = 202

§

VN = 203

§

SI = 204

§

SO = 205

§

ZA = 206

§

ZW = 207

§

ES = 208

§

SS = 209

§

SD = 210

§

EH = 211

§

SR = 212

§

SJ = 213

§

SZ = 214

§

SE = 215

§

CH = 216

§

SY = 217

§

TJ = 218

§

TH = 219

§

TG = 220

§

TK = 221

§

TO = 222

§

AE = 223

§

TN = 224

§

TT = 225

§

TR = 226

§

TM = 227

§

TC = 228

§

TV = 229

§

UG = 230

§

UA = 231

§

MK = 232

§

EG = 233

§

GB = 234

§

GG = 235

§

JE = 236

§

IM = 237

§

TZ = 238

§

US = 239

§

VI = 240

§

BF = 241

§

UY = 242

§

UZ = 243

§

VE = 244

§

WF = 245

§

WS = 246

§

YE = 247

§

ZM = 248

Trait Implementations§

Source§

impl Clone for CountryAlpha2

Source§

fn clone(&self) -> CountryAlpha2

Returns a duplicate 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

Source§

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 for CountryAlpha2

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u16> for CountryAlpha2

Source§

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 StructuralPartialEq for CountryAlpha2

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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 T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

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

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.