#[repr(C, u8)]pub enum ThemeCondition {
Light,
Dark,
Custom(AzString),
SystemPreferred,
}Variants§
Implementations§
Source§impl ThemeCondition
impl ThemeCondition
Sourcepub const fn from_system_theme(theme: Theme) -> Self
pub const fn from_system_theme(theme: Theme) -> Self
Convert from css::system::Theme
Trait Implementations§
Source§impl Clone for ThemeCondition
impl Clone for ThemeCondition
Source§fn clone(&self) -> ThemeCondition
fn clone(&self) -> ThemeCondition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ThemeCondition
impl Debug for ThemeCondition
impl Eq for ThemeCondition
Source§impl Hash for ThemeCondition
impl Hash for ThemeCondition
Source§impl Ord for ThemeCondition
impl Ord for ThemeCondition
Source§fn cmp(&self, other: &ThemeCondition) -> Ordering
fn cmp(&self, other: &ThemeCondition) -> Ordering
1.21.0 (const: unstable) · 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 ThemeCondition
impl PartialEq for ThemeCondition
Source§impl PartialOrd for ThemeCondition
impl PartialOrd for ThemeCondition
impl StructuralPartialEq for ThemeCondition
Auto Trait Implementations§
impl Freeze for ThemeCondition
impl RefUnwindSafe for ThemeCondition
impl Send for ThemeCondition
impl Sync for ThemeCondition
impl Unpin for ThemeCondition
impl UnsafeUnpin for ThemeCondition
impl UnwindSafe for ThemeCondition
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