ISO 4217 currency codes
This crate provides an enum that represents all ISO 4217 currencies and has simple methods to convert between numeric and character code, list of territories where each currency is used, the symbol, and the English name of the currency.
The data for this is taken from https://en.wikipedia.org/wiki/ISO_4217
The Country
enum is re-exported from the only dependency - the iso_country crate.
Features
The crate has only one optional feature - with-serde
. If you need serialization/deserialization support using serde
you should include the feature in your dependency on iso_currency
, for example like this:
= { = "0.3.1", = ["with-serde"] }
Examples
use ;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;