Enum rust_icu_sys::UNumberFormatStyle
source · #[repr(u32)]pub enum UNumberFormatStyle {
Show 18 variants
UNUM_PATTERN_DECIMAL = 0,
UNUM_DECIMAL = 1,
UNUM_CURRENCY = 2,
UNUM_PERCENT = 3,
UNUM_SCIENTIFIC = 4,
UNUM_SPELLOUT = 5,
UNUM_ORDINAL = 6,
UNUM_DURATION = 7,
UNUM_NUMBERING_SYSTEM = 8,
UNUM_PATTERN_RULEBASED = 9,
UNUM_CURRENCY_ISO = 10,
UNUM_CURRENCY_PLURAL = 11,
UNUM_CURRENCY_ACCOUNTING = 12,
UNUM_CASH_CURRENCY = 13,
UNUM_DECIMAL_COMPACT_SHORT = 14,
UNUM_DECIMAL_COMPACT_LONG = 15,
UNUM_CURRENCY_STANDARD = 16,
UNUM_FORMAT_STYLE_COUNT = 17,
}
Variants§
UNUM_PATTERN_DECIMAL = 0
UNUM_DECIMAL = 1
UNUM_CURRENCY = 2
UNUM_PERCENT = 3
UNUM_SCIENTIFIC = 4
UNUM_SPELLOUT = 5
UNUM_ORDINAL = 6
UNUM_DURATION = 7
UNUM_NUMBERING_SYSTEM = 8
UNUM_PATTERN_RULEBASED = 9
UNUM_CURRENCY_ISO = 10
UNUM_CURRENCY_PLURAL = 11
UNUM_CURRENCY_ACCOUNTING = 12
UNUM_CASH_CURRENCY = 13
UNUM_DECIMAL_COMPACT_SHORT = 14
UNUM_DECIMAL_COMPACT_LONG = 15
UNUM_CURRENCY_STANDARD = 16
UNUM_FORMAT_STYLE_COUNT = 17
Implementations§
source§impl UNumberFormatStyle
impl UNumberFormatStyle
pub const UNUM_DEFAULT: UNumberFormatStyle = UNumberFormatStyle::UNUM_DECIMAL
source§impl UNumberFormatStyle
impl UNumberFormatStyle
pub const UNUM_IGNORE: UNumberFormatStyle = UNumberFormatStyle::UNUM_PATTERN_DECIMAL
Trait Implementations§
source§impl Clone for UNumberFormatStyle
impl Clone for UNumberFormatStyle
source§fn clone(&self) -> UNumberFormatStyle
fn clone(&self) -> UNumberFormatStyle
Returns a copy 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 UNumberFormatStyle
impl Debug for UNumberFormatStyle
source§impl Hash for UNumberFormatStyle
impl Hash for UNumberFormatStyle
source§impl PartialEq for UNumberFormatStyle
impl PartialEq for UNumberFormatStyle
source§fn eq(&self, other: &UNumberFormatStyle) -> bool
fn eq(&self, other: &UNumberFormatStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for UNumberFormatStyle
impl PartialOrd for UNumberFormatStyle
source§fn partial_cmp(&self, other: &UNumberFormatStyle) -> Option<Ordering>
fn partial_cmp(&self, other: &UNumberFormatStyle) -> Option<Ordering>
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 UNumberFormatStyle
impl Eq for UNumberFormatStyle
impl StructuralPartialEq for UNumberFormatStyle
Auto Trait Implementations§
impl RefUnwindSafe for UNumberFormatStyle
impl Send for UNumberFormatStyle
impl Sync for UNumberFormatStyle
impl Unpin for UNumberFormatStyle
impl UnwindSafe for UNumberFormatStyle
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