pub struct Appearance {
pub value: u16,
pub category: Option<&'static str>,
pub subcategory: Option<&'static str>,
}Expand description
An Appearance value, split into its category and subcategory.
Fields§
§value: u16The raw 16-bit value.
category: Option<&'static str>The category’s name (bits 15 to 6), when assigned.
subcategory: Option<&'static str>The subcategory’s name (bits 5 to 0), when assigned; None for the
generic subcategory 0.
Trait Implementations§
Source§impl Clone for Appearance
impl Clone for Appearance
impl Copy for Appearance
Source§impl Debug for Appearance
impl Debug for Appearance
impl Eq for Appearance
Source§impl PartialEq for Appearance
impl PartialEq for Appearance
impl StructuralPartialEq for Appearance
Auto Trait Implementations§
impl Freeze for Appearance
impl RefUnwindSafe for Appearance
impl Send for Appearance
impl Sync for Appearance
impl Unpin for Appearance
impl UnsafeUnpin for Appearance
impl UnwindSafe for Appearance
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