#[non_exhaustive]pub struct DisplayNamesPreferences {
pub locale_preferences: LocalePreferences,
}Expand description
The preferences for display names.
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_preferences: LocalePreferencesLocale Preferences for the Preferences structure.
Implementations§
Source§impl DisplayNamesPreferences
impl DisplayNamesPreferences
Sourcepub fn extend(&mut self, other: DisplayNamesPreferences)
pub fn extend(&mut self, other: DisplayNamesPreferences)
Extends the preferences with the values from another set of preferences.
Sourcepub fn from_locale_strict(
loc: &Locale,
) -> Result<DisplayNamesPreferences, DisplayNamesPreferences>
pub fn from_locale_strict( loc: &Locale, ) -> Result<DisplayNamesPreferences, DisplayNamesPreferences>
Construct a DisplayNamesPreferences from a Locale
Returns Err if any of of the preference values are invalid.
Trait Implementations§
Source§impl Clone for DisplayNamesPreferences
impl Clone for DisplayNamesPreferences
Source§fn clone(&self) -> DisplayNamesPreferences
fn clone(&self) -> DisplayNamesPreferences
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DisplayNamesPreferences
Source§impl Debug for DisplayNamesPreferences
impl Debug for DisplayNamesPreferences
Source§impl Default for DisplayNamesPreferences
impl Default for DisplayNamesPreferences
Source§fn default() -> DisplayNamesPreferences
fn default() -> DisplayNamesPreferences
Returns the “default value” for a type. Read more
impl Eq for DisplayNamesPreferences
Source§impl From<&LanguageIdentifier> for DisplayNamesPreferences
impl From<&LanguageIdentifier> for DisplayNamesPreferences
Source§fn from(lid: &LanguageIdentifier) -> DisplayNamesPreferences
fn from(lid: &LanguageIdentifier) -> DisplayNamesPreferences
Converts to this type from the input type.
Source§impl From<&Locale> for DisplayNamesPreferences
impl From<&Locale> for DisplayNamesPreferences
Source§fn from(loc: &Locale) -> DisplayNamesPreferences
fn from(loc: &Locale) -> DisplayNamesPreferences
Converts to this type from the input type.
Source§impl From<LanguageIdentifier> for DisplayNamesPreferences
impl From<LanguageIdentifier> for DisplayNamesPreferences
Source§fn from(lid: LanguageIdentifier) -> DisplayNamesPreferences
fn from(lid: LanguageIdentifier) -> DisplayNamesPreferences
Converts to this type from the input type.
Source§impl From<Locale> for DisplayNamesPreferences
impl From<Locale> for DisplayNamesPreferences
Source§fn from(loc: Locale) -> DisplayNamesPreferences
fn from(loc: Locale) -> DisplayNamesPreferences
Converts to this type from the input type.
Source§impl Hash for DisplayNamesPreferences
impl Hash for DisplayNamesPreferences
Source§impl PartialEq for DisplayNamesPreferences
impl PartialEq for DisplayNamesPreferences
impl StructuralPartialEq for DisplayNamesPreferences
Auto Trait Implementations§
impl Freeze for DisplayNamesPreferences
impl RefUnwindSafe for DisplayNamesPreferences
impl Send for DisplayNamesPreferences
impl Sync for DisplayNamesPreferences
impl Unpin for DisplayNamesPreferences
impl UnsafeUnpin for DisplayNamesPreferences
impl UnwindSafe for DisplayNamesPreferences
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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