pub struct LocalePreferences { /* private fields */ }
Expand description
The structure storing locale subtags used in preferences.
Implementations§
Source§impl LocalePreferences
impl LocalePreferences
Sourcepub fn to_data_locale_region_priority(self) -> DataLocale
pub fn to_data_locale_region_priority(self) -> DataLocale
Convert to a DataLocale, with region-based fallback priority
Most users should use icu_provider::marker::make_locale()
instead.
Sourcepub fn to_data_locale_language_priority(self) -> DataLocale
pub fn to_data_locale_language_priority(self) -> DataLocale
Convert to a DataLocale, with language-based fallback priority
Most users should use icu_provider::marker::make_locale()
instead.
Source§impl LocalePreferences
impl LocalePreferences
Sourcepub const fn default() -> Self
pub const fn default() -> Self
Constructs a new LocalePreferences
struct with the defaults.
Sourcepub fn extend(&mut self, other: LocalePreferences)
pub fn extend(&mut self, other: LocalePreferences)
Extends the preferences with the values from another set of preferences.
Trait Implementations§
Source§impl Clone for LocalePreferences
impl Clone for LocalePreferences
Source§fn clone(&self) -> LocalePreferences
fn clone(&self) -> LocalePreferences
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 LocalePreferences
impl Debug for LocalePreferences
Source§impl Default for LocalePreferences
impl Default for LocalePreferences
Source§impl From<&LanguageIdentifier> for LocalePreferences
impl From<&LanguageIdentifier> for LocalePreferences
Source§fn from(lid: &LanguageIdentifier) -> Self
fn from(lid: &LanguageIdentifier) -> Self
Converts to this type from the input type.
Source§impl From<&Locale> for LocalePreferences
impl From<&Locale> for LocalePreferences
Source§impl Hash for LocalePreferences
impl Hash for LocalePreferences
Source§impl PartialEq for LocalePreferences
impl PartialEq for LocalePreferences
impl Copy for LocalePreferences
impl Eq for LocalePreferences
impl StructuralPartialEq for LocalePreferences
Auto Trait Implementations§
impl Freeze for LocalePreferences
impl RefUnwindSafe for LocalePreferences
impl Send for LocalePreferences
impl Sync for LocalePreferences
impl Unpin for LocalePreferences
impl UnwindSafe for LocalePreferences
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