#[non_exhaustive]pub enum QualifierKey {
Language,
Region,
Density,
Orientation,
Device,
Script,
ColorMode,
Mcc,
Mnc,
InputDevice,
Other(u32),
}Expand description
What a qualifier restricts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Language
Language, zh or en: key 0.
Region
Region, CN or US: key 1.
Density
Screen density (sdpi .. xxxldpi), stored as dots per inch.
Orientation
vertical or horizontal: key 3.
Device
Device type, phone or tablet: key 4.
Script
Script, Hans or Latn: key 5.
ColorMode
dark / light.
Mcc
Mobile country code: key 7.
Mnc
Mobile network code: key 8.
InputDevice
pointingdevice: key 10.
Other(u32)
A key this crate has no name for.
Trait Implementations§
Source§impl Clone for QualifierKey
impl Clone for QualifierKey
impl Copy for QualifierKey
Source§impl Debug for QualifierKey
impl Debug for QualifierKey
Source§impl Display for QualifierKey
The key’s name: language, colorMode, key9 for an unnamed one.
impl Display for QualifierKey
The key’s name: language, colorMode, key9 for an unnamed one.
impl Eq for QualifierKey
Source§impl Hash for QualifierKey
impl Hash for QualifierKey
Source§impl PartialEq for QualifierKey
impl PartialEq for QualifierKey
impl StructuralPartialEq for QualifierKey
Auto Trait Implementations§
impl Forget for QualifierKey
impl Freeze for QualifierKey
impl Move for QualifierKey
impl RefUnwindSafe for QualifierKey
impl Send for QualifierKey
impl Sync for QualifierKey
impl Unpin for QualifierKey
impl UnsafeUnpin for QualifierKey
impl UnwindSafe for QualifierKey
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