#[non_exhaustive]pub struct DecimalFormatterPreferences {
pub locale_preferences: LocalePreferences,
pub numbering_system: Option<NumberingSystem>,
}
Expand description
The preferences for fixed 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_preferences: 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.
To get the resolved numbering system, you can inspect the data provider.
See the provider
module for an example.
Implementations§
Source§impl DecimalFormatterPreferences
impl DecimalFormatterPreferences
Sourcepub fn extend(&mut self, other: DecimalFormatterPreferences)
pub fn extend(&mut self, other: DecimalFormatterPreferences)
Extends the preferences with the values from another set of preferences.
Trait Implementations§
Source§impl Clone for DecimalFormatterPreferences
impl Clone for DecimalFormatterPreferences
Source§fn clone(&self) -> DecimalFormatterPreferences
fn clone(&self) -> DecimalFormatterPreferences
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 DecimalFormatterPreferences
impl Debug for DecimalFormatterPreferences
Source§impl Default for DecimalFormatterPreferences
impl Default for DecimalFormatterPreferences
Source§fn default() -> DecimalFormatterPreferences
fn default() -> DecimalFormatterPreferences
Returns the “default value” for a type. Read more
Source§impl From<&LanguageIdentifier> for DecimalFormatterPreferences
impl From<&LanguageIdentifier> for DecimalFormatterPreferences
Source§impl From<&Locale> for DecimalFormatterPreferences
impl From<&Locale> for DecimalFormatterPreferences
Source§impl From<LanguageIdentifier> for DecimalFormatterPreferences
impl From<LanguageIdentifier> for DecimalFormatterPreferences
Source§impl From<Locale> for DecimalFormatterPreferences
impl From<Locale> for DecimalFormatterPreferences
Source§impl Hash for DecimalFormatterPreferences
impl Hash for DecimalFormatterPreferences
impl Copy for DecimalFormatterPreferences
impl Eq for DecimalFormatterPreferences
impl StructuralPartialEq for DecimalFormatterPreferences
Auto Trait Implementations§
impl Freeze for DecimalFormatterPreferences
impl RefUnwindSafe for DecimalFormatterPreferences
impl Send for DecimalFormatterPreferences
impl Sync for DecimalFormatterPreferences
impl Unpin for DecimalFormatterPreferences
impl UnwindSafe for DecimalFormatterPreferences
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§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