Struct icu_experimental::dimension::currency::compact_formatter::CompactCurrencyFormatterPreferences
source · #[non_exhaustive]pub struct CompactCurrencyFormatterPreferences {
pub locale_prefs: LocalePreferences,
pub numbering_system: Option<NumberingSystem>,
}
Expand description
The preferences for currency 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 CompactCurrencyFormatterPreferences
impl CompactCurrencyFormatterPreferences
sourcepub fn extend(&mut self, other: CompactCurrencyFormatterPreferences)
pub fn extend(&mut self, other: CompactCurrencyFormatterPreferences)
Extends the preferences with the values from another set of preferences.
Trait Implementations§
source§impl Clone for CompactCurrencyFormatterPreferences
impl Clone for CompactCurrencyFormatterPreferences
source§fn clone(&self) -> CompactCurrencyFormatterPreferences
fn clone(&self) -> CompactCurrencyFormatterPreferences
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 CompactCurrencyFormatterPreferences
impl Default for CompactCurrencyFormatterPreferences
source§fn default() -> CompactCurrencyFormatterPreferences
fn default() -> CompactCurrencyFormatterPreferences
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<&CompactCurrencyFormatterPreferences> for FixedDecimalFormatterPreferences
impl From<&CompactCurrencyFormatterPreferences> for FixedDecimalFormatterPreferences
source§fn from(other: &CompactCurrencyFormatterPreferences) -> Self
fn from(other: &CompactCurrencyFormatterPreferences) -> Self
Converts to this type from the input type.
source§impl From<&LanguageIdentifier> for CompactCurrencyFormatterPreferences
impl From<&LanguageIdentifier> for CompactCurrencyFormatterPreferences
source§impl From<&Locale> for CompactCurrencyFormatterPreferences
impl From<&Locale> for CompactCurrencyFormatterPreferences
source§impl From<CompactCurrencyFormatterPreferences> for Locale
impl From<CompactCurrencyFormatterPreferences> for Locale
source§fn from(other: CompactCurrencyFormatterPreferences) -> Self
fn from(other: CompactCurrencyFormatterPreferences) -> Self
Converts to this type from the input type.
source§impl From<LanguageIdentifier> for CompactCurrencyFormatterPreferences
impl From<LanguageIdentifier> for CompactCurrencyFormatterPreferences
source§impl From<Locale> for CompactCurrencyFormatterPreferences
impl From<Locale> for CompactCurrencyFormatterPreferences
source§impl PartialEq for CompactCurrencyFormatterPreferences
impl PartialEq for CompactCurrencyFormatterPreferences
source§fn eq(&self, other: &CompactCurrencyFormatterPreferences) -> bool
fn eq(&self, other: &CompactCurrencyFormatterPreferences) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for CompactCurrencyFormatterPreferences
impl Eq for CompactCurrencyFormatterPreferences
impl StructuralPartialEq for CompactCurrencyFormatterPreferences
Auto Trait Implementations§
impl Freeze for CompactCurrencyFormatterPreferences
impl RefUnwindSafe for CompactCurrencyFormatterPreferences
impl Send for CompactCurrencyFormatterPreferences
impl Sync for CompactCurrencyFormatterPreferences
impl Unpin for CompactCurrencyFormatterPreferences
impl UnwindSafe for CompactCurrencyFormatterPreferences
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