Function iso4217::country [] [src]

pub fn country<'a>(country: &str) -> Option<Vec<CurrencyCode<'a>>>

Returns an Option> of the CurrencyCodes that are used by the given country's alpha2 code, specified by ISO 3166.

Examples

An example of a valid use case:

extern crate iso4217;

fn main() {
    let currencies = iso4217::country("AL").unwrap();
}