pub enum NumberStyle {
Decimal,
Currency {
code: CurrencyCode,
style: CurrencyDisplayStyle,
sign: CurrencySignMode,
},
Percent,
Unit {
identifier: UnitIdentifier,
style: UnitDisplayStyle,
},
}
Variants§
Implementations§
Source§impl NumberStyle
impl NumberStyle
pub fn is_currency(&self) -> bool
pub fn is_unit(&self) -> bool
pub fn is_decimal(&self) -> bool
pub fn is_percent(&self) -> bool
pub fn set_currency_display_style( &mut self, new_style: CurrencyDisplayStyle, ) -> bool
pub fn set_currency_sign_mode(&mut self, new_sign: CurrencySignMode) -> bool
pub fn set_unit_display_style(&mut self, new_style: UnitDisplayStyle) -> bool
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NumberStyle
impl Debug for NumberStyle
Source§impl Default for NumberStyle
impl Default for NumberStyle
Source§impl Hash for NumberStyle
impl Hash for NumberStyle
Source§impl PartialEq for NumberStyle
impl PartialEq for NumberStyle
impl Eq for NumberStyle
impl StructuralPartialEq for NumberStyle
Auto Trait Implementations§
impl Freeze for NumberStyle
impl RefUnwindSafe for NumberStyle
impl Send for NumberStyle
impl Sync for NumberStyle
impl Unpin 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