pub struct USD;Expand description
United States dollar
Trait Implementations§
Source§impl Currency for USD
impl Currency for USD
Source§const NAME: &'static str = "United States dollar"
const NAME: &'static str = "United States dollar"
Full currency name (e.g., “US Dollar”, “Euro”)
Source§const MINOR_UNIT: u16 = 2
const MINOR_UNIT: u16 = 2
Number of decimal places/minor units (e.g., USD -> cents -> minor unit = 2)
Source§const MINOR_UNIT_SYMBOL: &'static str = "¢"
const MINOR_UNIT_SYMBOL: &'static str = "¢"
Currency minor symbol (e.g., USD -> “¢”)
Source§const THOUSAND_SEPARATOR: &'static str = ","
const THOUSAND_SEPARATOR: &'static str = ","
thousand separator (e.g., USD -> “,”)
Source§const DECIMAL_SEPARATOR: &'static str = "."
const DECIMAL_SEPARATOR: &'static str = "."
decimal separator (e.g., USD -> “.”)
impl Copy for USD
impl Eq for USD
impl StructuralPartialEq for USD
Auto Trait Implementations§
impl Freeze for USD
impl RefUnwindSafe for USD
impl Send for USD
impl Sync for USD
impl Unpin for USD
impl UnsafeUnpin for USD
impl UnwindSafe for USD
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