#[repr(C, u8)]pub enum ThemeCondition {
Light,
Dark,
Custom(AzString),
SystemPreferred,
}Variants§
Implementations§
Source§impl ThemeCondition
impl ThemeCondition
Sourcepub fn from_system_theme(theme: Theme) -> Self
pub 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 · 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
Source§impl Hash for ThemeCondition
impl Hash for ThemeCondition
Source§impl PartialEq for ThemeCondition
impl PartialEq for ThemeCondition
impl Eq 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 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