pub struct LocalePreference {
pub locale: String,
pub priority: usize,
}Expand description
A normalized locale preference with an explicit priority.
Fields§
§locale: String§priority: usizeImplementations§
Trait Implementations§
Source§impl Clone for LocalePreference
impl Clone for LocalePreference
Source§fn clone(&self) -> LocalePreference
fn clone(&self) -> LocalePreference
Returns a duplicate 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 LocalePreference
impl Debug for LocalePreference
Source§impl PartialEq for LocalePreference
impl PartialEq for LocalePreference
impl Eq for LocalePreference
impl StructuralPartialEq for LocalePreference
Auto Trait Implementations§
impl Freeze for LocalePreference
impl RefUnwindSafe for LocalePreference
impl Send for LocalePreference
impl Sync for LocalePreference
impl Unpin for LocalePreference
impl UnsafeUnpin for LocalePreference
impl UnwindSafe for LocalePreference
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