pub struct LocaleResolution {
pub language: Language,
pub source: LocaleSource,
pub system_raw: Option<String>,
pub persisted_raw: Option<String>,
}Expand description
Full resolution result (language + winning layer + raw inputs for diagnostics).
Fields§
§language: LanguageNegotiated product language.
source: LocaleSourceWinning precedence layer.
system_raw: Option<String>Raw OS locale string when layer was system (if any).
persisted_raw: Option<String>Raw persisted file content when present.
Trait Implementations§
Source§impl Clone for LocaleResolution
impl Clone for LocaleResolution
Source§fn clone(&self) -> LocaleResolution
fn clone(&self) -> LocaleResolution
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 moreSource§impl Debug for LocaleResolution
impl Debug for LocaleResolution
impl Eq for LocaleResolution
Source§impl PartialEq for LocaleResolution
impl PartialEq for LocaleResolution
impl StructuralPartialEq for LocaleResolution
Auto Trait Implementations§
impl Freeze for LocaleResolution
impl RefUnwindSafe for LocaleResolution
impl Send for LocaleResolution
impl Sync for LocaleResolution
impl Unpin for LocaleResolution
impl UnsafeUnpin for LocaleResolution
impl UnwindSafe for LocaleResolution
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.