pub struct Currency<L: CurrencyLocale> { /* private fields */ }Expand description
Represents a currency value with specified localization.
Implementations§
Source§impl<L: CurrencyLocale> Currency<L>
impl<L: CurrencyLocale> Currency<L>
Trait Implementations§
Source§impl<L, T> AddAssign<T> for Currency<L>
impl<L, T> AddAssign<T> for Currency<L>
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+= operation. Read moreSource§impl<L> Display for Currency<L>where
L: CurrencyLocale,
impl<L> Display for Currency<L>where
L: CurrencyLocale,
Source§impl<L> From<f32> for Currency<L>where
L: CurrencyLocale + Default,
Assumes that the f32 is meant as a money value, for example 10.99 would be 10.99
impl<L> From<f32> for Currency<L>where
L: CurrencyLocale + Default,
Assumes that the f32 is meant as a money value, for example 10.99 would be 10.99
Source§impl<L> From<f64> for Currency<L>where
L: CurrencyLocale + Default,
Assumes that the f64 is meant as a money value, for example 10.99 would be 10.99
impl<L> From<f64> for Currency<L>where
L: CurrencyLocale + Default,
Assumes that the f64 is meant as a money value, for example 10.99 would be 10.99
Source§impl<L: CurrencyLocale + PartialEq> PartialOrd for Currency<L>
impl<L: CurrencyLocale + PartialEq> PartialOrd for Currency<L>
Source§impl<L, T> SubAssign<T> for Currency<L>
impl<L, T> SubAssign<T> for Currency<L>
Source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the
-= operation. Read moreimpl<L: Copy + CurrencyLocale> Copy for Currency<L>
impl<L: Eq + CurrencyLocale> Eq for Currency<L>
impl<L: CurrencyLocale> StructuralPartialEq for Currency<L>
Auto Trait Implementations§
impl<L> Freeze for Currency<L>where
L: Freeze,
impl<L> RefUnwindSafe for Currency<L>where
L: RefUnwindSafe,
impl<L> Send for Currency<L>where
L: Send,
impl<L> Sync for Currency<L>where
L: Sync,
impl<L> Unpin for Currency<L>where
L: Unpin,
impl<L> UnwindSafe for Currency<L>where
L: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more