pub struct CNY;Expand description
Renminbi (Chinese) yuan
Trait Implementations§
Source§impl Currency for CNY
impl Currency for CNY
Source§const NAME: &'static str = "Renminbi (Chinese) yuan"
const NAME: &'static str = "Renminbi (Chinese) yuan"
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 = "minor"
const MINOR_UNIT_SYMBOL: &'static str = "minor"
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 CNY
impl Eq for CNY
impl StructuralPartialEq for CNY
Auto Trait Implementations§
impl Freeze for CNY
impl RefUnwindSafe for CNY
impl Send for CNY
impl Sync for CNY
impl Unpin for CNY
impl UnsafeUnpin for CNY
impl UnwindSafe for CNY
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