pub enum UserInterfaceStyle {
Automatic,
Light,
Dark,
}Expand description
User Interface Style
Variants§
Automatic
Set this value to adopt the systemwide user interface style, and observe any changes to that style. This is the default value, and provides the same functionality as if the key weren’t explicitly set.
Light
Set this value to force the light user interface style, even when the systemwide style is set to dark. Your app will ignore any changes to the systemwide style.
Dark
Set this value to force the dark user interface style, even when the systemwide style is set to light. Your app will ignore any changes to the systemwide style.
Trait Implementations§
Source§impl Clone for UserInterfaceStyle
impl Clone for UserInterfaceStyle
Source§fn clone(&self) -> UserInterfaceStyle
fn clone(&self) -> UserInterfaceStyle
Returns a duplicate of the value. Read more
1.0.0 · 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 UserInterfaceStyle
impl Debug for UserInterfaceStyle
Source§impl<'de> Deserialize<'de> for UserInterfaceStyle
impl<'de> Deserialize<'de> for UserInterfaceStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UserInterfaceStyle
impl PartialEq for UserInterfaceStyle
Source§impl Serialize for UserInterfaceStyle
impl Serialize for UserInterfaceStyle
impl Eq for UserInterfaceStyle
impl StructuralPartialEq for UserInterfaceStyle
Auto Trait Implementations§
impl Freeze for UserInterfaceStyle
impl RefUnwindSafe for UserInterfaceStyle
impl Send for UserInterfaceStyle
impl Sync for UserInterfaceStyle
impl Unpin for UserInterfaceStyle
impl UnwindSafe for UserInterfaceStyle
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.