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