Crate monies[][src]

Macros

define_currency_set

Create custom currencies for use with Money types

Structs

Currency

Represents a single ISO-4217 currency (e.g. USD).

Exchange

Stores ExchangeRates for easier access.

ExchangeRate

Stores rates of conversion between two currencies.

Formatter

Converts Money objects into human readable strings.

LocalFormat

Stores currency formatting metadata for a specific region (e.g. EN-US).

Money

Represents an amount of a given currency.

Params

Group of formatting parameters consumed by Formatter.

Enums

Locale

Enumerates regions which have unique formatting standards for Currencies.

MoneyError

Standard Error type for this crate.

Position

Items which must be positioned in a Money string.

Round

Strategies that can be used to round Money.

Constants

AED
AFN
ALL
AMD
ANG
AOA
ARS
AUD
AWG
AZN
BAM
BBD
BDT
BGN
BHD
BIF
BMD
BND
BOB
BRL
BSD
BTN
BWP
BYN
BYR
BZD
CAD
CDF
CHF
CLF
CLP
CNY
COP
CRC
CUC
CUP
CVE
CZK
DJF
DKK
DOP
DZD
EGP
ERN
ETB
EUR
FJD
FKP
GBP
GEL
GHS
GIP
GMD
GNF
GTQ
GYD
HKD
HNL
HRK
HTG
HUF
IDR
ILS
INR
IQD
IRR
ISK
JMD
JOD
JPY
KES
KGS
KHR
KMF
KPW
KRW
KWD
KYD
KZT
LAK
LBP
LKR
LRD
LSL
LYD
MAD
MDL
MGA
MKD
MMK
MNT
MOP
MRU
MUR
MVR
MWK
MXN
MYR
MZN
NAD
NGN
NIO
NOK
NPR
NZD
OMR
PAB
PEN
PGK
PHP
PKR
PLN
PYG
QAR
RON
RSD
RUB
RWF
SAR
SBD
SCR
SDG
SEK
SGD
SHP
SKK
SLL
SOS
SRD
SSP
STD
STN
SVC
SYP
SZL
THB
TJS
TMT
TND
TOP
TRY
TTD
TWD
TZS
UAH
UGX
USD
UYU
UYW
UZS
VES
VND
VUV
WST
XAF
XAG
XAU
XBA
XBB
XBC
XBD
XCD
XDR
XOF
XPD
XPF
XPT
XTS
YER
ZAR
ZMK
ZMW
ZWL

Traits

FormattableCurrency

Pre-requisite for a Currency to be accepted by a Money.

Functions

find
find_by_num_code