#[non_exhaustive]pub struct DisplayNamesPreferences {
pub locale_prefs: 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_prefs: LocalePreferences
Locale 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.
Trait Implementations§
source§impl Clone for DisplayNamesPreferences
impl Clone for DisplayNamesPreferences
source§fn clone(&self) -> DisplayNamesPreferences
fn clone(&self) -> DisplayNamesPreferences
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 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
source§impl From<&LanguageIdentifier> for DisplayNamesPreferences
impl From<&LanguageIdentifier> for DisplayNamesPreferences
source§impl From<&Locale> for DisplayNamesPreferences
impl From<&Locale> for DisplayNamesPreferences
source§impl From<DisplayNamesPreferences> for Locale
impl From<DisplayNamesPreferences> for Locale
source§fn from(other: DisplayNamesPreferences) -> Self
fn from(other: DisplayNamesPreferences) -> Self
Converts to this type from the input type.
source§impl From<LanguageIdentifier> for DisplayNamesPreferences
impl From<LanguageIdentifier> for DisplayNamesPreferences
source§impl From<Locale> for DisplayNamesPreferences
impl From<Locale> for DisplayNamesPreferences
source§impl Hash for DisplayNamesPreferences
impl Hash for DisplayNamesPreferences
source§impl PartialEq for DisplayNamesPreferences
impl PartialEq for DisplayNamesPreferences
impl Copy for DisplayNamesPreferences
impl Eq 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 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,
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