pub struct LanguageUsage {
pub lang: String,
pub preferred: bool,
}Expand description
/Language sub-dict.
Fields§
§lang: String/Lang — BCP 47 language tag (e.g. en-US).
preferred: bool/Preferred — true when the layer is the preferred choice
for its language.
Trait Implementations§
Source§impl Clone for LanguageUsage
impl Clone for LanguageUsage
Source§fn clone(&self) -> LanguageUsage
fn clone(&self) -> LanguageUsage
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 moreAuto Trait Implementations§
impl Freeze for LanguageUsage
impl RefUnwindSafe for LanguageUsage
impl Send for LanguageUsage
impl Sync for LanguageUsage
impl Unpin for LanguageUsage
impl UnsafeUnpin for LanguageUsage
impl UnwindSafe for LanguageUsage
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<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