Skip to main content

Country

Enum Country 

Source
pub enum Country {
Show 250 variants Unspecified = 0, AD = 20, AE = 784, AF = 4, AG = 28, AI = 660, AL = 8, AM = 51, AO = 24, AQ = 10, AR = 32, AS = 16, AT = 40, AU = 36, AW = 533, AX = 248, AZ = 31, BA = 70, BB = 52, BD = 50, BE = 56, BF = 854, BG = 100, BH = 48, BI = 108, BJ = 204, BL = 652, BM = 60, BN = 96, BO = 68, BQ = 535, BR = 76, BS = 44, BT = 64, BV = 74, BW = 72, BY = 112, BZ = 84, CA = 124, CC = 166, CD = 180, CF = 140, CG = 178, CH = 756, CI = 384, CK = 184, CL = 152, CM = 120, CN = 156, CO = 170, CR = 188, CU = 192, CV = 132, CW = 531, CX = 162, CY = 196, CZ = 203, DE = 276, DJ = 262, DK = 208, DM = 212, DO = 214, DZ = 12, EC = 218, EE = 233, EG = 818, EH = 732, ER = 232, ES = 724, ET = 231, FI = 246, FJ = 242, FK = 238, FM = 583, FO = 234, FR = 250, GA = 266, GB = 826, GD = 308, GE = 268, GF = 254, GG = 831, GH = 288, GI = 292, GL = 304, GM = 270, GN = 324, GP = 312, GQ = 226, GR = 300, GS = 239, GT = 320, GU = 316, GW = 624, GY = 328, HK = 344, HM = 334, HN = 340, HR = 191, HT = 332, HU = 348, ID = 360, IE = 372, IL = 376, IM = 833, IN = 356, IO = 86, IQ = 368, IR = 364, IS = 352, IT = 380, JE = 832, JM = 388, JO = 400, JP = 392, KE = 404, KG = 417, KH = 116, KI = 296, KM = 174, KN = 659, KP = 408, KR = 410, KW = 414, KY = 136, KZ = 398, LA = 418, LB = 422, LC = 662, LI = 438, LK = 144, LR = 430, LS = 426, LT = 440, LU = 442, LV = 428, LY = 434, MA = 504, MC = 492, MD = 498, ME = 499, MF = 663, MG = 450, MH = 584, MK = 807, ML = 466, MM = 104, MN = 496, MO = 446, MP = 580, MQ = 474, MR = 478, MS = 500, MT = 470, MU = 480, MV = 462, MW = 454, MX = 484, MY = 458, MZ = 508, NA = 516, NC = 540, NE = 562, NF = 574, NG = 566, NI = 558, NL = 528, NO = 578, NP = 524, NR = 520, NU = 570, NZ = 554, OM = 512, PA = 591, PE = 604, PF = 258, PG = 598, PH = 608, PK = 586, PL = 616, PM = 666, PN = 612, PR = 630, PS = 275, PT = 620, PW = 585, PY = 600, QA = 634, RE = 638, RO = 642, RS = 688, RU = 643, RW = 646, SA = 682, SB = 90, SC = 690, SD = 729, SE = 752, SG = 702, SH = 654, SI = 705, SJ = 744, SK = 703, SL = 694, SM = 674, SN = 686, SO = 706, SR = 740, SS = 728, ST = 678, SV = 222, SX = 534, SY = 760, SZ = 748, TC = 796, TD = 148, TF = 260, TG = 768, TH = 764, TJ = 762, TK = 772, TL = 626, TM = 795, TN = 788, TO = 776, TR = 792, TT = 780, TV = 798, TW = 158, TZ = 834, UA = 804, UG = 800, UM = 581, US = 840, UY = 858, UZ = 860, VA = 336, VC = 670, VE = 862, VG = 92, VI = 850, VN = 704, VU = 548, WF = 876, WS = 882, YE = 887, YT = 175, ZA = 710, ZM = 894, ZW = 716,
}

Variants§

§

Unspecified = 0

§

AD = 20

§

AE = 784

§

AF = 4

§

AG = 28

§

AI = 660

§

AL = 8

§

AM = 51

§

AO = 24

§

AQ = 10

§

AR = 32

§

AS = 16

§

AT = 40

§

AU = 36

§

AW = 533

§

AX = 248

§

AZ = 31

§

BA = 70

§

BB = 52

§

BD = 50

§

BE = 56

§

BF = 854

§

BG = 100

§

BH = 48

§

BI = 108

§

BJ = 204

§

BL = 652

§

BM = 60

§

BN = 96

§

BO = 68

§

BQ = 535

§

BR = 76

§

BS = 44

§

BT = 64

§

BV = 74

§

BW = 72

§

BY = 112

§

BZ = 84

§

CA = 124

§

CC = 166

§

CD = 180

§

CF = 140

§

CG = 178

§

CH = 756

§

CI = 384

§

CK = 184

§

CL = 152

§

CM = 120

§

CN = 156

§

CO = 170

§

CR = 188

§

CU = 192

§

CV = 132

§

CW = 531

§

CX = 162

§

CY = 196

§

CZ = 203

§

DE = 276

§

DJ = 262

§

DK = 208

§

DM = 212

§

DO = 214

§

DZ = 12

§

EC = 218

§

EE = 233

§

EG = 818

§

EH = 732

§

ER = 232

§

ES = 724

§

ET = 231

§

FI = 246

§

FJ = 242

§

FK = 238

§

FM = 583

§

FO = 234

§

FR = 250

§

GA = 266

§

GB = 826

§

GD = 308

§

GE = 268

§

GF = 254

§

GG = 831

§

GH = 288

§

GI = 292

§

GL = 304

§

GM = 270

§

GN = 324

§

GP = 312

§

GQ = 226

§

GR = 300

§

GS = 239

§

GT = 320

§

GU = 316

§

GW = 624

§

GY = 328

§

HK = 344

§

HM = 334

§

HN = 340

§

HR = 191

§

HT = 332

§

HU = 348

§

ID = 360

§

IE = 372

§

IL = 376

§

IM = 833

§

IN = 356

§

IO = 86

§

IQ = 368

§

IR = 364

§

IS = 352

§

IT = 380

§

JE = 832

§

JM = 388

§

JO = 400

§

JP = 392

§

KE = 404

§

KG = 417

§

KH = 116

§

KI = 296

§

KM = 174

§

KN = 659

§

KP = 408

§

KR = 410

§

KW = 414

§

KY = 136

§

KZ = 398

§

LA = 418

§

LB = 422

§

LC = 662

§

LI = 438

§

LK = 144

§

LR = 430

§

LS = 426

§

LT = 440

§

LU = 442

§

LV = 428

§

LY = 434

§

MA = 504

§

MC = 492

§

MD = 498

§

ME = 499

§

MF = 663

§

MG = 450

§

MH = 584

§

MK = 807

§

ML = 466

§

MM = 104

§

MN = 496

§

MO = 446

§

MP = 580

§

MQ = 474

§

MR = 478

§

MS = 500

§

MT = 470

§

MU = 480

§

MV = 462

§

MW = 454

§

MX = 484

§

MY = 458

§

MZ = 508

§

NA = 516

§

NC = 540

§

NE = 562

§

NF = 574

§

NG = 566

§

NI = 558

§

NL = 528

§

NO = 578

§

NP = 524

§

NR = 520

§

NU = 570

§

NZ = 554

§

OM = 512

§

PA = 591

§

PE = 604

§

PF = 258

§

PG = 598

§

PH = 608

§

PK = 586

§

PL = 616

§

PM = 666

§

PN = 612

§

PR = 630

§

PS = 275

§

PT = 620

§

PW = 585

§

PY = 600

§

QA = 634

§

RE = 638

§

RO = 642

§

RS = 688

§

RU = 643

§

RW = 646

§

SA = 682

§

SB = 90

§

SC = 690

§

SD = 729

§

SE = 752

§

SG = 702

§

SH = 654

§

SI = 705

§

SJ = 744

§

SK = 703

§

SL = 694

§

SM = 674

§

SN = 686

§

SO = 706

§

SR = 740

§

SS = 728

§

ST = 678

§

SV = 222

§

SX = 534

§

SY = 760

§

SZ = 748

§

TC = 796

§

TD = 148

§

TF = 260

§

TG = 768

§

TH = 764

§

TJ = 762

§

TK = 772

§

TL = 626

§

TM = 795

§

TN = 788

§

TO = 776

§

TR = 792

§

TT = 780

§

TV = 798

§

TW = 158

§

TZ = 834

§

UA = 804

§

UG = 800

§

UM = 581

§

US = 840

§

UY = 858

§

UZ = 860

§

VA = 336

§

VC = 670

§

VE = 862

§

VG = 92

§

VI = 850

§

VN = 704

§

VU = 548

§

WF = 876

§

WS = 882

§

YE = 887

§

YT = 175

§

ZA = 710

§

ZM = 894

§

ZW = 716

Implementations§

Source§

impl Country

Source

pub fn name(&self) -> &'static str

Source

pub fn from_name(s: &str) -> Option<Country>

Trait Implementations§

Source§

impl Clone for Country

Source§

fn clone(&self) -> Country

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 Country

Source§

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

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

impl Display for Country

Source§

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

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

impl FromStr for Country

Source§

type Err = CountryParseError

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

fn from_str(s: &str) -> Result<Country, <Country as FromStr>::Err>

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

impl Hash for Country

Source§

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

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 Ord for Country

Source§

fn cmp(&self, other: &Country) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Country

Source§

fn eq(&self, other: &Country) -> 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 PartialOrd for Country

Source§

fn partial_cmp(&self, other: &Country) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for Country

Source§

impl Eq for Country

Source§

impl StructuralPartialEq for Country

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> 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.