pub struct Currency {
pub code: &'static str,
pub scale: u32,
}Expand description
An ISO-4217 currency: its three-letter code and its minor-unit scale (the number of fractional
digits — USD→2, JPY→0, BHD→3). The code is the identity.
Fields§
§code: &'static str§scale: u32Trait Implementations§
impl Copy for Currency
impl Eq for Currency
Auto Trait Implementations§
impl Freeze for Currency
impl RefUnwindSafe for Currency
impl Send for Currency
impl Sync for Currency
impl Unpin for Currency
impl UnsafeUnpin for Currency
impl UnwindSafe for Currency
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