1 unstable release

0.1.0 Mar 3, 2020

#483 in Finance

Download history 570/week @ 2024-12-17 368/week @ 2024-12-24 237/week @ 2024-12-31 468/week @ 2025-01-07 711/week @ 2025-01-14 649/week @ 2025-01-21 413/week @ 2025-01-28 753/week @ 2025-02-04 803/week @ 2025-02-11 543/week @ 2025-02-18 917/week @ 2025-02-25 1363/week @ 2025-03-04 1192/week @ 2025-03-11 773/week @ 2025-03-18 780/week @ 2025-03-25 564/week @ 2025-04-01

3,381 downloads per month
Used in 3 crates (via baseunits-rs)

MIT/Apache

21KB
301 lines

iso-4217

CI Rust Documentation Latest Version

This library provides enumeration of ISO-4217.

[dependencies]
iso-4217 = "0.1"

Example

use std::convert::TryFrom;
use iso_4217::*;

let usd: CurrencyCode = TryFrom::try_from("USD").unwrap();
assert_eq!(usd, CurrencyCode::USD);

assert_eq!(usd.alpha(), "USD");
assert_eq!(usd.num(), 840);
assert_eq!(usd.digit(), Some(2));
assert_eq!(usd.name(), "United States dollar");

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

No runtime deps