pub enum NumberStyle {
Decimal,
Percent,
Currency {
code: Option<&'static str>,
symbol: Option<&'static str>,
},
}Expand description
Numerical display style.
Variants§
Decimal
Standard decimal format (e.g. 1,234.56).
Percent
Percentage format multiplied by 100 with percent sign (e.g. 12.5%).
Currency
Currency format with symbol/code (e.g. $1,234.56 or 1.234,56 €).
Trait Implementations§
Source§impl Clone for NumberStyle
impl Clone for NumberStyle
Source§fn clone(&self) -> NumberStyle
fn clone(&self) -> NumberStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NumberStyle
Source§impl Debug for NumberStyle
impl Debug for NumberStyle
Source§impl Default for NumberStyle
impl Default for NumberStyle
Source§fn default() -> NumberStyle
fn default() -> NumberStyle
Returns the “default value” for a type. Read more
impl Eq for NumberStyle
Source§impl PartialEq for NumberStyle
impl PartialEq for NumberStyle
impl StructuralPartialEq for NumberStyle
Auto Trait Implementations§
impl Forget for NumberStyle
impl Freeze for NumberStyle
impl Move for NumberStyle
impl RefUnwindSafe for NumberStyle
impl Send for NumberStyle
impl Sync for NumberStyle
impl Unpin for NumberStyle
impl UnsafeUnpin for NumberStyle
impl UnwindSafe for NumberStyle
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