Struct icu::experimental::dimension::currency::long_compact_formatter::LongCompactCurrencyFormatterPreferences
source · #[non_exhaustive]pub struct LongCompactCurrencyFormatterPreferences {
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>
Implementations§
source§impl LongCompactCurrencyFormatterPreferences
impl LongCompactCurrencyFormatterPreferences
sourcepub fn extend(&mut self, other: LongCompactCurrencyFormatterPreferences)
pub fn extend(&mut self, other: LongCompactCurrencyFormatterPreferences)
Extends the preferences with the values from another set of preferences.
Trait Implementations§
source§impl Clone for LongCompactCurrencyFormatterPreferences
impl Clone for LongCompactCurrencyFormatterPreferences
source§fn clone(&self) -> LongCompactCurrencyFormatterPreferences
fn clone(&self) -> LongCompactCurrencyFormatterPreferences
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 LongCompactCurrencyFormatterPreferences
impl Default for LongCompactCurrencyFormatterPreferences
source§fn default() -> LongCompactCurrencyFormatterPreferences
fn default() -> LongCompactCurrencyFormatterPreferences
Returns the “default value” for a type. Read more
source§impl From<&LanguageIdentifier> for LongCompactCurrencyFormatterPreferences
impl From<&LanguageIdentifier> for LongCompactCurrencyFormatterPreferences
source§fn from(lid: &LanguageIdentifier) -> LongCompactCurrencyFormatterPreferences
fn from(lid: &LanguageIdentifier) -> LongCompactCurrencyFormatterPreferences
Converts to this type from the input type.
source§impl From<&Locale> for LongCompactCurrencyFormatterPreferences
impl From<&Locale> for LongCompactCurrencyFormatterPreferences
source§fn from(loc: &Locale) -> LongCompactCurrencyFormatterPreferences
fn from(loc: &Locale) -> LongCompactCurrencyFormatterPreferences
Converts to this type from the input type.
source§impl From<&LongCompactCurrencyFormatterPreferences> for CompactDecimalFormatterPreferences
impl From<&LongCompactCurrencyFormatterPreferences> for CompactDecimalFormatterPreferences
source§fn from(
other: &LongCompactCurrencyFormatterPreferences,
) -> CompactDecimalFormatterPreferences
fn from( other: &LongCompactCurrencyFormatterPreferences, ) -> CompactDecimalFormatterPreferences
Converts to this type from the input type.
source§impl From<&LongCompactCurrencyFormatterPreferences> for PluralRulesPreferences
impl From<&LongCompactCurrencyFormatterPreferences> for PluralRulesPreferences
source§fn from(
other: &LongCompactCurrencyFormatterPreferences,
) -> PluralRulesPreferences
fn from( other: &LongCompactCurrencyFormatterPreferences, ) -> PluralRulesPreferences
Converts to this type from the input type.
source§impl From<LanguageIdentifier> for LongCompactCurrencyFormatterPreferences
impl From<LanguageIdentifier> for LongCompactCurrencyFormatterPreferences
source§fn from(lid: LanguageIdentifier) -> LongCompactCurrencyFormatterPreferences
fn from(lid: LanguageIdentifier) -> LongCompactCurrencyFormatterPreferences
Converts to this type from the input type.
source§impl From<Locale> for LongCompactCurrencyFormatterPreferences
impl From<Locale> for LongCompactCurrencyFormatterPreferences
source§fn from(loc: Locale) -> LongCompactCurrencyFormatterPreferences
fn from(loc: Locale) -> LongCompactCurrencyFormatterPreferences
Converts to this type from the input type.
source§impl From<LongCompactCurrencyFormatterPreferences> for Locale
impl From<LongCompactCurrencyFormatterPreferences> for Locale
source§fn from(other: LongCompactCurrencyFormatterPreferences) -> Locale
fn from(other: LongCompactCurrencyFormatterPreferences) -> Locale
Converts to this type from the input type.
source§impl PartialEq for LongCompactCurrencyFormatterPreferences
impl PartialEq for LongCompactCurrencyFormatterPreferences
source§fn eq(&self, other: &LongCompactCurrencyFormatterPreferences) -> bool
fn eq(&self, other: &LongCompactCurrencyFormatterPreferences) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for LongCompactCurrencyFormatterPreferences
impl Eq for LongCompactCurrencyFormatterPreferences
impl StructuralPartialEq for LongCompactCurrencyFormatterPreferences
Auto Trait Implementations§
impl Freeze for LongCompactCurrencyFormatterPreferences
impl RefUnwindSafe for LongCompactCurrencyFormatterPreferences
impl Send for LongCompactCurrencyFormatterPreferences
impl Sync for LongCompactCurrencyFormatterPreferences
impl Unpin for LongCompactCurrencyFormatterPreferences
impl UnwindSafe for LongCompactCurrencyFormatterPreferences
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