#[non_exhaustive]pub struct RelativeTimeFormatterPreferences {
pub locale_prefs: LocalePreferences,
}
Expand description
The preferences for relative time 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.
Implementations§
source§impl RelativeTimeFormatterPreferences
impl RelativeTimeFormatterPreferences
sourcepub fn extend(&mut self, other: RelativeTimeFormatterPreferences)
pub fn extend(&mut self, other: RelativeTimeFormatterPreferences)
Extends the preferences with the values from another set of preferences.
Trait Implementations§
source§impl Clone for RelativeTimeFormatterPreferences
impl Clone for RelativeTimeFormatterPreferences
source§fn clone(&self) -> RelativeTimeFormatterPreferences
fn clone(&self) -> RelativeTimeFormatterPreferences
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 Default for RelativeTimeFormatterPreferences
impl Default for RelativeTimeFormatterPreferences
source§fn default() -> RelativeTimeFormatterPreferences
fn default() -> RelativeTimeFormatterPreferences
Returns the “default value” for a type. Read more
source§impl From<&LanguageIdentifier> for RelativeTimeFormatterPreferences
impl From<&LanguageIdentifier> for RelativeTimeFormatterPreferences
source§fn from(lid: &LanguageIdentifier) -> RelativeTimeFormatterPreferences
fn from(lid: &LanguageIdentifier) -> RelativeTimeFormatterPreferences
Converts to this type from the input type.
source§impl From<&Locale> for RelativeTimeFormatterPreferences
impl From<&Locale> for RelativeTimeFormatterPreferences
source§fn from(loc: &Locale) -> RelativeTimeFormatterPreferences
fn from(loc: &Locale) -> RelativeTimeFormatterPreferences
Converts to this type from the input type.
source§impl From<&RelativeTimeFormatterPreferences> for FixedDecimalFormatterPreferences
impl From<&RelativeTimeFormatterPreferences> for FixedDecimalFormatterPreferences
source§fn from(
other: &RelativeTimeFormatterPreferences,
) -> FixedDecimalFormatterPreferences
fn from( other: &RelativeTimeFormatterPreferences, ) -> FixedDecimalFormatterPreferences
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<LanguageIdentifier> for RelativeTimeFormatterPreferences
impl From<LanguageIdentifier> for RelativeTimeFormatterPreferences
source§fn from(lid: LanguageIdentifier) -> RelativeTimeFormatterPreferences
fn from(lid: LanguageIdentifier) -> RelativeTimeFormatterPreferences
Converts to this type from the input type.
source§impl From<Locale> for RelativeTimeFormatterPreferences
impl From<Locale> for RelativeTimeFormatterPreferences
source§fn from(loc: Locale) -> RelativeTimeFormatterPreferences
fn from(loc: Locale) -> RelativeTimeFormatterPreferences
Converts to this type from the input type.
source§impl From<RelativeTimeFormatterPreferences> for Locale
impl From<RelativeTimeFormatterPreferences> for Locale
source§fn from(other: RelativeTimeFormatterPreferences) -> Locale
fn from(other: RelativeTimeFormatterPreferences) -> Locale
Converts to this type from the input type.
source§impl PartialEq for RelativeTimeFormatterPreferences
impl PartialEq for RelativeTimeFormatterPreferences
source§fn eq(&self, other: &RelativeTimeFormatterPreferences) -> bool
fn eq(&self, other: &RelativeTimeFormatterPreferences) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for RelativeTimeFormatterPreferences
impl Eq for RelativeTimeFormatterPreferences
impl StructuralPartialEq for RelativeTimeFormatterPreferences
Auto Trait Implementations§
impl Freeze for RelativeTimeFormatterPreferences
impl RefUnwindSafe for RelativeTimeFormatterPreferences
impl Send for RelativeTimeFormatterPreferences
impl Sync for RelativeTimeFormatterPreferences
impl Unpin for RelativeTimeFormatterPreferences
impl UnwindSafe for RelativeTimeFormatterPreferences
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