#[non_exhaustive]pub struct CompactDecimalFormatterPreferences {
pub locale_prefs: LocalePreferences,
pub numbering_system: Option<NumberingSystem>,
}
Expand description
The preferences for compact decimal formatting.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.locale_prefs: LocalePreferences
Locale Preferences for the Preferences structure.
numbering_system: Option<NumberingSystem>
The user’s preferred numbering system.
Corresponds to the -u-nu
in Unicode Locale Identifier.
Implementations§
source§impl CompactDecimalFormatterPreferences
impl CompactDecimalFormatterPreferences
sourcepub fn extend(&mut self, other: CompactDecimalFormatterPreferences)
pub fn extend(&mut self, other: CompactDecimalFormatterPreferences)
Extends the preferences with the values from another set of preferences.
Trait Implementations§
source§impl Clone for CompactDecimalFormatterPreferences
impl Clone for CompactDecimalFormatterPreferences
source§fn clone(&self) -> CompactDecimalFormatterPreferences
fn clone(&self) -> CompactDecimalFormatterPreferences
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 Default for CompactDecimalFormatterPreferences
impl Default for CompactDecimalFormatterPreferences
source§fn default() -> CompactDecimalFormatterPreferences
fn default() -> CompactDecimalFormatterPreferences
Returns the “default value” for a type. Read more
source§impl From<&CompactCurrencyFormatterPreferences> for CompactDecimalFormatterPreferences
impl From<&CompactCurrencyFormatterPreferences> for CompactDecimalFormatterPreferences
source§fn from(other: &CompactCurrencyFormatterPreferences) -> Self
fn from(other: &CompactCurrencyFormatterPreferences) -> Self
Converts to this type from the input type.
source§impl From<&CompactDecimalFormatterPreferences> for FixedDecimalFormatterPreferences
impl From<&CompactDecimalFormatterPreferences> for FixedDecimalFormatterPreferences
source§fn from(other: &CompactDecimalFormatterPreferences) -> Self
fn from(other: &CompactDecimalFormatterPreferences) -> Self
Converts to this type from the input type.
source§impl From<&CompactDecimalFormatterPreferences> for PluralRulesPreferences
impl From<&CompactDecimalFormatterPreferences> for PluralRulesPreferences
source§fn from(other: &CompactDecimalFormatterPreferences) -> Self
fn from(other: &CompactDecimalFormatterPreferences) -> Self
Converts to this type from the input type.
source§impl From<&LanguageIdentifier> for CompactDecimalFormatterPreferences
impl From<&LanguageIdentifier> for CompactDecimalFormatterPreferences
source§impl From<&Locale> for CompactDecimalFormatterPreferences
impl From<&Locale> for CompactDecimalFormatterPreferences
source§impl From<&LongCompactCurrencyFormatterPreferences> for CompactDecimalFormatterPreferences
impl From<&LongCompactCurrencyFormatterPreferences> for CompactDecimalFormatterPreferences
source§fn from(other: &LongCompactCurrencyFormatterPreferences) -> Self
fn from(other: &LongCompactCurrencyFormatterPreferences) -> Self
Converts to this type from the input type.
source§impl From<CompactDecimalFormatterPreferences> for Locale
impl From<CompactDecimalFormatterPreferences> for Locale
source§fn from(other: CompactDecimalFormatterPreferences) -> Self
fn from(other: CompactDecimalFormatterPreferences) -> Self
Converts to this type from the input type.
source§impl From<LanguageIdentifier> for CompactDecimalFormatterPreferences
impl From<LanguageIdentifier> for CompactDecimalFormatterPreferences
source§impl From<Locale> for CompactDecimalFormatterPreferences
impl From<Locale> for CompactDecimalFormatterPreferences
source§impl PartialEq for CompactDecimalFormatterPreferences
impl PartialEq for CompactDecimalFormatterPreferences
source§fn eq(&self, other: &CompactDecimalFormatterPreferences) -> bool
fn eq(&self, other: &CompactDecimalFormatterPreferences) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for CompactDecimalFormatterPreferences
impl Eq for CompactDecimalFormatterPreferences
impl StructuralPartialEq for CompactDecimalFormatterPreferences
Auto Trait Implementations§
impl Freeze for CompactDecimalFormatterPreferences
impl RefUnwindSafe for CompactDecimalFormatterPreferences
impl Send for CompactDecimalFormatterPreferences
impl Sync for CompactDecimalFormatterPreferences
impl Unpin for CompactDecimalFormatterPreferences
impl UnwindSafe for CompactDecimalFormatterPreferences
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more