Struct icu::experimental::dimension::percent::formatter::PercentFormatterPreferences
source · #[non_exhaustive]pub struct PercentFormatterPreferences {
pub locale_prefs: LocalePreferences,
pub numbering_system: Option<NumberingSystem>,
}
Expand description
The preferences for percent 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 PercentFormatterPreferences
impl PercentFormatterPreferences
sourcepub fn extend(&mut self, other: PercentFormatterPreferences)
pub fn extend(&mut self, other: PercentFormatterPreferences)
Extends the preferences with the values from another set of preferences.
Trait Implementations§
source§impl Clone for PercentFormatterPreferences
impl Clone for PercentFormatterPreferences
source§fn clone(&self) -> PercentFormatterPreferences
fn clone(&self) -> PercentFormatterPreferences
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 PercentFormatterPreferences
impl Debug for PercentFormatterPreferences
source§impl Default for PercentFormatterPreferences
impl Default for PercentFormatterPreferences
source§fn default() -> PercentFormatterPreferences
fn default() -> PercentFormatterPreferences
Returns the “default value” for a type. Read more
source§impl From<&LanguageIdentifier> for PercentFormatterPreferences
impl From<&LanguageIdentifier> for PercentFormatterPreferences
source§fn from(lid: &LanguageIdentifier) -> PercentFormatterPreferences
fn from(lid: &LanguageIdentifier) -> PercentFormatterPreferences
Converts to this type from the input type.
source§impl From<&Locale> for PercentFormatterPreferences
impl From<&Locale> for PercentFormatterPreferences
source§fn from(loc: &Locale) -> PercentFormatterPreferences
fn from(loc: &Locale) -> PercentFormatterPreferences
Converts to this type from the input type.
source§impl From<&PercentFormatterPreferences> for FixedDecimalFormatterPreferences
impl From<&PercentFormatterPreferences> for FixedDecimalFormatterPreferences
source§fn from(other: &PercentFormatterPreferences) -> FixedDecimalFormatterPreferences
fn from(other: &PercentFormatterPreferences) -> FixedDecimalFormatterPreferences
Converts to this type from the input type.
source§impl From<LanguageIdentifier> for PercentFormatterPreferences
impl From<LanguageIdentifier> for PercentFormatterPreferences
source§fn from(lid: LanguageIdentifier) -> PercentFormatterPreferences
fn from(lid: LanguageIdentifier) -> PercentFormatterPreferences
Converts to this type from the input type.
source§impl From<Locale> for PercentFormatterPreferences
impl From<Locale> for PercentFormatterPreferences
source§fn from(loc: Locale) -> PercentFormatterPreferences
fn from(loc: Locale) -> PercentFormatterPreferences
Converts to this type from the input type.
source§impl From<PercentFormatterPreferences> for Locale
impl From<PercentFormatterPreferences> for Locale
source§fn from(other: PercentFormatterPreferences) -> Locale
fn from(other: PercentFormatterPreferences) -> Locale
Converts to this type from the input type.
source§impl Hash for PercentFormatterPreferences
impl Hash for PercentFormatterPreferences
impl Copy for PercentFormatterPreferences
impl Eq for PercentFormatterPreferences
impl StructuralPartialEq for PercentFormatterPreferences
Auto Trait Implementations§
impl Freeze for PercentFormatterPreferences
impl RefUnwindSafe for PercentFormatterPreferences
impl Send for PercentFormatterPreferences
impl Sync for PercentFormatterPreferences
impl Unpin for PercentFormatterPreferences
impl UnwindSafe for PercentFormatterPreferences
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