[−][src]Struct iso_currency::CurrencySymbol
Fields
symbol: String
subunit_symbol: Option<String>
Implementations
impl CurrencySymbol
[src]
pub fn new(symbol: &str, subunit_symbol: Option<&str>) -> CurrencySymbol
[src]
Represents the commonly used symbol for a currency
Data for the symbols was collected from https://en.wikipedia.org/wiki/Currency_symbol#List_of_presently-circulating_currency_symbols
TODO: Add data about subunit symbols for every currency TODO: Add data about English representations of some currency symbols TODO: Maybe add data about alternative variants of the symbols TODO: Add data about position of symbol (according to locale) when formatting a sum of money
Trait Implementations
impl Debug for CurrencySymbol
[src]
impl Display for CurrencySymbol
[src]
impl PartialEq<CurrencySymbol> for CurrencySymbol
[src]
fn eq(&self, other: &CurrencySymbol) -> bool
[src]
fn ne(&self, other: &CurrencySymbol) -> bool
[src]
impl StructuralPartialEq for CurrencySymbol
[src]
Auto Trait Implementations
impl RefUnwindSafe for CurrencySymbol
impl Send for CurrencySymbol
impl Sync for CurrencySymbol
impl Unpin for CurrencySymbol
impl UnwindSafe for CurrencySymbol
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,