#[non_exhaustive]pub struct Qualifier {
pub key: QualifierKey,
pub value: u32,
}Expand description
One key of a qualifier set with its stored value.
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.key: QualifierKeyWhat the qualifier restricts.
value: u32The stored number: packed letters for language, script and region, dots per inch for density, an enumerator for the rest.
Trait Implementations§
impl Copy for Qualifier
Source§impl Display for Qualifier
The value as it is spelled in a resource directory name: zh, CN,
dark, xldpi, mcc460. A value without a spelling is
<key>=<number>.
impl Display for Qualifier
The value as it is spelled in a resource directory name: zh, CN,
dark, xldpi, mcc460. A value without a spelling is
<key>=<number>.
impl Eq for Qualifier
impl StructuralPartialEq for Qualifier
Auto Trait Implementations§
impl Forget for Qualifier
impl Freeze for Qualifier
impl Move for Qualifier
impl RefUnwindSafe for Qualifier
impl Send for Qualifier
impl Sync for Qualifier
impl Unpin for Qualifier
impl UnsafeUnpin for Qualifier
impl UnwindSafe for Qualifier
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