pub enum ColorScheme {
NoPreference,
PreferDark,
PreferLight,
}
Expand description
The system’s preferred color scheme
Variants§
Trait Implementations§
Source§impl Clone for ColorScheme
impl Clone for ColorScheme
Source§fn clone(&self) -> ColorScheme
fn clone(&self) -> ColorScheme
Returns a copy 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 ColorScheme
impl Debug for ColorScheme
Source§impl Default for ColorScheme
impl Default for ColorScheme
Source§fn default() -> ColorScheme
fn default() -> ColorScheme
Returns the “default value” for a type. Read more
Source§impl From<ColorScheme> for OwnedValue
impl From<ColorScheme> for OwnedValue
Source§fn from(value: ColorScheme) -> Self
fn from(value: ColorScheme) -> Self
Converts to this type from the input type.
Source§impl Ord for ColorScheme
impl Ord for ColorScheme
Source§fn cmp(&self, other: &ColorScheme) -> Ordering
fn cmp(&self, other: &ColorScheme) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ColorScheme
impl PartialEq for ColorScheme
Source§impl PartialOrd for ColorScheme
impl PartialOrd for ColorScheme
Source§impl TryFrom<OwnedValue> for ColorScheme
impl TryFrom<OwnedValue> for ColorScheme
Source§impl TryFrom<Value<'_>> for ColorScheme
impl TryFrom<Value<'_>> for ColorScheme
impl Copy for ColorScheme
impl Eq for ColorScheme
impl StructuralPartialEq for ColorScheme
Auto Trait Implementations§
impl Freeze for ColorScheme
impl RefUnwindSafe for ColorScheme
impl Send for ColorScheme
impl Sync for ColorScheme
impl Unpin for ColorScheme
impl UnwindSafe for ColorScheme
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