Function rust_iso4217::from_numeric

source ·
pub fn from_numeric(numeric: i32) -> Option<CurrencyCode>
Expand description

Returns the CurrencyCode with the given numeric , if exists.

let currency = rust_iso4217::from_numeric(116);
assert_eq!("KHR", currency.unwrap().code);