Struct currencies::currency::USD
source · pub struct USD;
Expand description
United States Dollar ($)
Trait Implementations§
source§impl Currency for USD
impl Currency for USD
source§const BASE: Self::Backing = {transmute(0x0000000000000064): <currency::USD as currency::Currency>::Backing}
const BASE: Self::Backing = {transmute(0x0000000000000064): <currency::USD as currency::Currency>::Backing}
source§const CODE: &'static str = "USD"
const CODE: &'static str = "USD"
Specifies a 3-4 digit acronym or “code” that can be used as a short name for this
Currency
. For ISO-supported currencies, this will be equal to the ISO-4217
alphabetic code, which can be found here: https://en.wikipedia.org/wiki/ISO_4217. Read moresource§const PROPER_NAME: &'static str = "United States Dollar"
const PROPER_NAME: &'static str = "United States Dollar"
source§const STYLE: FormatStyle = crate::currency::FormatStyle::PrefixAttached
const STYLE: FormatStyle = crate::currency::FormatStyle::PrefixAttached
Specifies how an
Amount
of this Currency
should be displayed when it is
represented textually via core::fmt::Display
and core::fmt::Debug
.source§fn decimal_digits() -> usize
fn decimal_digits() -> usize
Returns the number of digits to the right of the decimal point for this
Currency
.source§impl Ord for USD
impl Ord for USD
source§impl PartialOrd for USD
impl PartialOrd for USD
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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 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