use-currency-code
Small ISO 4217-style currency code primitives for RustUse.
Example
use ;
let currency = parse_currency_code.unwrap;
assert_eq!;
assert!;
Scope
- Validate 3-letter alphabetic currency code shapes.
- Normalize currency code identifiers to uppercase.
- Provide a small
CurrencyCodenewtype for validated currency identifiers.
Non-goals
- Exchange rates.
- Money arithmetic.
- Decimal formatting.
- Live currency metadata downloads.
- Finance APIs.
License
Licensed under either of the following, at your option:
- Apache License, Version 2.0
- MIT license