Enum jcm::CurrencyCode

source ·
#[repr(u32)]
pub enum CurrencyCode {
Show 180 variants AED = 784, AFN = 971, ALL = 8, AMD = 51, ANG = 532, AOA = 973, ARS = 32, AUD = 36, AWG = 533, AZN = 944, BAM = 977, BBD = 52, BDT = 50, BGN = 975, BHD = 48, BIF = 108, BMD = 60, BND = 96, BOB = 68, BOV = 984, BRL = 986, BSD = 44, BTN = 64, BWP = 72, BYN = 933, BZD = 84, CAD = 124, CDF = 976, CHE = 947, CHF = 756, CHW = 948, CLF = 990, CLP = 152, COP = 170, COU = 970, CRC = 188, CUC = 931, CUP = 192, CVE = 132, CZK = 203, DJF = 262, DKK = 208, DOP = 214, DZD = 12, EGP = 818, ERN = 232, ETB = 230, EUR = 978, FJD = 242, FKP = 238, GBP = 826, GEL = 981, GHS = 936, GIP = 292, GMD = 270, GNF = 324, GTQ = 320, GYD = 328, HKD = 344, HNL = 340, HTG = 332, HUF = 348, IDR = 360, ILS = 376, INR = 356, IQD = 368, IRR = 364, ISK = 352, JMD = 388, JOD = 400, JPY = 392, KES = 404, KGS = 417, KHR = 116, KMF = 174, KPW = 408, KRW = 410, KWD = 414, KYD = 136, KZT = 398, LAK = 418, LBP = 422, LKR = 144, LRD = 430, LSL = 426, LYD = 434, MAD = 504, MDL = 498, MGA = 969, MKD = 807, MMK = 104, MNT = 496, MOP = 446, MRU = 929, MUR = 480, MVR = 462, MWK = 454, MXN = 484, MXV = 979, MYR = 458, MZN = 943, NAD = 516, NGN = 566, NIO = 558, NOK = 578, NPR = 524, NZD = 554, OMR = 512, PAB = 590, PEN = 604, PGK = 598, PHP = 608, PKR = 586, PLN = 985, PYG = 600, QAR = 634, RON = 946, RSD = 941, CNY = 156, RUB = 643, RWF = 646, SAR = 682, SBD = 90, SCR = 690, SDG = 938, SEK = 752, SGD = 702, SHP = 654, SLE = 925, SLL = 694, SOS = 706, SRD = 968, SSP = 728, STN = 930, SVC = 222, SYP = 760, SZL = 748, THB = 764, TJS = 972, TMT = 934, TND = 788, TOP = 776, TRY = 949, TTD = 780, TWD = 901, TZS = 834, UAH = 980, UGX = 800, USD = 840, USN = 997, UYI = 940, UYU = 858, UYW = 927, UZS = 860, VED = 926, VES = 928, VND = 704, VUV = 548, WST = 882, XAF = 950, XAG = 961, XAU = 959, XBA = 955, XBB = 956, XBC = 957, XBD = 958, XCD = 951, XDR = 960, XOF = 952, XPD = 964, XPF = 953, XPT = 962, XSU = 994, XTS = 963, XUA = 965, XXX = 999, YER = 886, ZAR = 710, ZMW = 967, ZWL = 932,
}
Expand description

Variants§

§

AED = 784

United Arab Emirates dirham United Arab Emirates

§

AFN = 971

Afghan afghani Afghanistan

§

ALL = 8

Albanian lek Albania

§

AMD = 51

Armenian dram Armenia

§

ANG = 532

Netherlands Antillean guilder Cura

§

AOA = 973

Angolan kwanza Angola

§

ARS = 32

Argentine peso Argentina

§

AUD = 36

Australian dollar Australia

§

AWG = 533

Aruban florin Aruba

§

AZN = 944

Azerbaijani manat Azerbaijan

§

BAM = 977

Bosnia and Herzegovina convertible mark Bosnia and Herzegovina

§

BBD = 52

Barbados dollar Barbados

§

BDT = 50

Bangladeshi taka Bangladesh

§

BGN = 975

Bulgarian lev Bulgaria

§

BHD = 48

Bahraini dinar Bahrain

§

BIF = 108

Burundian franc Burundi

§

BMD = 60

Bermudian dollar Bermuda

§

BND = 96

Brunei dollar Brunei

§

BOB = 68

Boliviano Bolivia

§

BOV = 984

Bolivian Mvdol (funds code)

§

BRL = 986

Brazilian real Brazil

§

BSD = 44

Bahamian dollar Bahamas

§

BTN = 64

Bhutanese ngultrum Bhutan

§

BWP = 72

Botswana pula Botswana

§

BYN = 933

Belarusian ruble Belarus

§

BZD = 84

Belize dollar Belize

§

CAD = 124

Canadian dollar Canada

§

CDF = 976

Congolese franc Democratic Republic of the Congo

§

CHE = 947

WIR euro (complementary currency)

§

CHF = 756

Swiss franc Switzerland

§

CHW = 948

WIR franc (complementary currency)

§

CLF = 990

Unidad de Fomento (funds code)

§

CLP = 152

Chilean peso Chile

§

COP = 170

Colombian peso Colombia

§

COU = 970

Unidad de Valor Real (UVR) (funds code)

§

CRC = 188

Costa Rican colon Costa Rica

§

CUC = 931

Cuban convertible peso Cuba

§

CUP = 192

Cuban peso Cuba

§

CVE = 132

Cape Verdean escudo Cabo Verde

§

CZK = 203

Czech koruna Czechia

§

DJF = 262

Djiboutian franc Djibouti

§

DKK = 208

Danish krone Denmark

§

DOP = 214

Dominican peso Dominican Republic

§

DZD = 12

Algerian dinar Algeria

§

EGP = 818

Egyptian pound Egypt

§

ERN = 232

Eritrean nakfa Eritrea

§

ETB = 230

Ethiopian birr Ethiopia

§

EUR = 978

Euro

§

FJD = 242

Fiji dollar Fiji

§

FKP = 238

Falkland Islands pound Falkland Islands (pegged to GBP)

§

GBP = 826

Pound sterling United Kingdom

§

GEL = 981

Georgian lari Georgia

§

GHS = 936

Ghanaian cedi Ghana

§

GIP = 292

Gibraltar pound Gibraltar (pegged to GBP)

§

GMD = 270

Gambian dalasi Gambia

§

GNF = 324

Guinean franc Guinea

§

GTQ = 320

Guatemalan quetzal Guatemala

§

GYD = 328

Guyanese dollar Guyana

§

HKD = 344

Hong Kong dollar Hong Kong

§

HNL = 340

Honduran lempira Honduras

§

HTG = 332

Haitian gourde Haiti

§

HUF = 348

Hungarian forint Hungary

§

IDR = 360

Indonesian rupiah Indonesia

§

ILS = 376

Israeli new shekel Israel

§

INR = 356

Indian rupee India

§

IQD = 368

Iraqi dinar Iraq

§

IRR = 364

Iranian rial Iran

§

ISK = 352

Icelandic kr

§

JMD = 388

Jamaican dollar Jamaica

§

JOD = 400

Jordanian dinar Jordan

§

JPY = 392

Japanese yen Japan

§

KES = 404

Kenyan shilling Kenya

§

KGS = 417

Kyrgyzstani som Kyrgyzstan

§

KHR = 116

Cambodian riel Cambodia

§

KMF = 174

Comoro franc Comoros

§

KPW = 408

North Korean won North Korea

§

KRW = 410

South Korean won

§

KWD = 414

Kuwaiti dinar Kuwait

§

KYD = 136

Cayman Islands dollar Cayman Islands

§

KZT = 398

Kazakhstani tenge Kazakhstan

§

LAK = 418

Lao kip Laos

§

LBP = 422

Lebanese pound Lebanon

§

LKR = 144

Sri Lankan rupee Sri Lanka

§

LRD = 430

Liberian dollar Liberia

§

LSL = 426

Lesotho loti Lesotho

§

LYD = 434

Libyan dinar Libya

§

MAD = 504

Moroccan dirham Morocco

§

MDL = 498

Moldovan leu Moldova

§

MGA = 969

Malagasy ariary

§

MKD = 807

Macedonian denar North Macedonia

§

MMK = 104

Myanmar kyat Myanmar

§

MNT = 496

Mongolian tögrög

§

MOP = 446

Macanese pataca Macau

§

MRU = 929

Mauritanian ouguiya

§

MUR = 480

Mauritian rupee Mauritius

§

MVR = 462

Maldivian rufiyaa Maldives

§

MWK = 454

Malawian kwacha Malawi

§

MXN = 484

Mexican peso Mexico

§

MXV = 979

Mexican Unidad de Inversion (UDI) (funds code)

§

MYR = 458

Malaysian ringgit Malaysia

§

MZN = 943

Mozambican metical Mozambique

§

NAD = 516

Namibian dollar Namibia (pegged to ZAR)

§

NGN = 566

Nigerian naira Nigeria

§

NIO = 558

Nicaraguan c

§

NOK = 578

Norwegian krone Norway

§

NPR = 524

Nepalese rupee Nepal

§

NZD = 554

New Zealand dollar New Zealand

§

OMR = 512

Omani rial Oman

§

PAB = 590

Panamanian balboa Panama

§

PEN = 604

Peruvian sol Peru

§

PGK = 598

Papua New Guinean kina Papua New Guinea

§

PHP = 608

Philippine peso

§

PKR = 586

Pakistani rupee Pakistan

§

PLN = 985

Polish z

§

PYG = 600

Paraguayan guaran

§

QAR = 634

Qatari riyal Qatar

§

RON = 946

Romanian leu Romania

§

RSD = 941

Serbian dinar Serbia

§

CNY = 156

Renminbi

§

RUB = 643

Russian ruble Russia

§

RWF = 646

Rwandan franc Rwanda

§

SAR = 682

Saudi riyal Saudi Arabia

§

SBD = 90

Solomon Islands dollar Solomon Islands

§

SCR = 690

Seychelles rupee Seychelles

§

SDG = 938

Sudanese pound Sudan

§

SEK = 752

Swedish krona (plural

§

SGD = 702

Singapore dollar Singapore

§

SHP = 654

Saint Helena pound Saint Helena (SH

§

SLE = 925

Sierra Leonean leone (new leone)

§

SLL = 694

Sierra Leonean leone (old leone)

§

SOS = 706

Somali shilling Somalia

§

SRD = 968

Surinamese dollar Suriname

§

SSP = 728

South Sudanese pound South Sudan

§

STN = 930

São Tomé and Príncipe dobra

§

SVC = 222

Salvadoran col

§

SYP = 760

Syrian pound Syria

§

SZL = 748

Swazi lilangeni Eswatini

§

THB = 764

Thai baht Thailand

§

TJS = 972

Tajikistani somoni Tajikistan

§

TMT = 934

Turkmenistan manat Turkmenistan

§

TND = 788

Tunisian dinar Tunisia

§

TOP = 776

Tongan pa

§

TRY = 949

Turkish lira Turkey

§

TTD = 780

Trinidad and Tobago dollar Trinidad and Tobago

§

TWD = 901

New Taiwan dollar Taiwan

§

TZS = 834

Tanzanian shilling Tanzania

§

UAH = 980

Ukrainian hryvnia Ukraine

§

UGX = 800

Ugandan shilling Uganda

§

USD = 840

United States dollar United States

§

USN = 997

United States dollar (next day) (funds code)

§

UYI = 940

Uruguay Peso en Unidades Indexadas (URUIURUI) (funds code)

§

UYU = 858

Uruguayan peso Uruguay

§

UYW = 927

Unidad previsional

§

UZS = 860

Uzbekistan sum Uzbekistan

§

VED = 926

Venezuelan digital bol

§

VES = 928

Venezuelan sovereign bol

§

VND = 704

Vietnamese

§

VUV = 548

Vanuatu vatu Vanuatu

§

WST = 882

Samoan tala Samoa

§

XAF = 950

CFA franc BEAC Cameroon (CM)

§

XAG = 961

Silver (one troy ounce)

§

XAU = 959

Gold (one troy ounce)

§

XBA = 955

European Composite Unit (bond market unit)

§

XBB = 956

European Monetary Unit (bond market unit)

§

XBC = 957

European Unit of Account 9 (bond market unit)

§

XBD = 958

European unit of account 17 (bond market unit)

§

XCD = 951

East Caribbean dollar Anguilla (AI)

§

XDR = 960

Special drawing rights

§

XOF = 952

CFA franc BCEAO Benin (BJ)

§

XPD = 964

Palladium (one troy ounce)

§

XPF = 953

CFP franc (franc Pacifique)

§

XPT = 962

Platinum (one troy ounce)

§

XSU = 994

SUCRE

§

XTS = 963

Code reserved for testing

§

XUA = 965

ADB Unit of Account

§

XXX = 999

No country code

§

YER = 886

Yemeni rial Yemen

§

ZAR = 710

South African rand Eswatini

§

ZMW = 967

Zambian kwacha Zambia

§

ZWL = 932

Zimbabwean dollar (fifth)

Implementations§

source§

impl Currency

source

pub const LEN: usize = 3usize

The length of the ASCII string, not the internal representation.

source

pub const fn new() -> Currency

Creates a new Currency.

source

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

Gets the name of the currency (in English).

Trait Implementations§

source§

impl Clone for Currency

source§

fn clone(&self) -> Currency

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 Currency

source§

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

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

impl Default for Currency

source§

fn default() -> Currency

Returns the “default value” for a type. Read more
source§

impl Display for Currency

source§

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

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

impl From<&[i8]> for Currency

source§

fn from(val: &[i8]) -> Currency

Converts to this type from the input type.
source§

impl<const N: usize> From<&[i8; N]> for Currency

source§

fn from(val: &[i8; N]) -> Currency

Converts to this type from the input type.
source§

impl From<&[u8]> for Currency

source§

fn from(val: &[u8]) -> Currency

Converts to this type from the input type.
source§

impl<const N: usize> From<&[u8; N]> for Currency

source§

fn from(val: &[u8; N]) -> Currency

Converts to this type from the input type.
source§

impl From<&Currency> for &'static str

source§

fn from(val: &Currency) -> &'static str

Converts to this type from the input type.
source§

impl From<&str> for Currency

source§

fn from(val: &str) -> Currency

Converts to this type from the input type.
source§

impl<const N: usize> From<[i8; N]> for Currency

source§

fn from(val: [i8; N]) -> Currency

Converts to this type from the input type.
source§

impl<const N: usize> From<[u8; N]> for Currency

source§

fn from(val: [u8; N]) -> Currency

Converts to this type from the input type.
source§

impl From<Currency> for &'static str

source§

fn from(val: Currency) -> &'static str

Converts to this type from the input type.
source§

impl PartialEq for Currency

source§

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

source§

impl StructuralPartialEq for Currency

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> 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> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where 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 T
where 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 T
where 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 T
where 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.