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