Struct penny::CurrencyInfo
[−]
[src]
pub struct CurrencyInfo { /* fields omitted */ }
A set of information returned from the Currency::info
method.
Methods
impl CurrencyInfo
[src]
fn code(&self) -> &'static str
[src]
Returns the 3 letter code of the currency.
fn name(&self) -> &'static str
[src]
Returns the name of the currency.
fn countries(&self) -> &'static [&'static str]
[src]
Returns the countries that use the currency.
fn is_fund(&self) -> bool
[src]
Returns true
if the currency is a fund code.
fn number(&self) -> u16
[src]
Returns the 3 digit code of the currency.
fn minor_units(&self) -> Option<u8>
[src]
Returns the decimal places of the currency.
Trait Implementations
impl Debug for CurrencyInfo
[src]
impl Clone for CurrencyInfo
[src]
fn clone(&self) -> CurrencyInfo
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more