pub enum Theme {
Dark,
Light,
System,
}Expand description
Whether it is a dark or light theme or whether it will respect system settings
Variants§
Implementations§
Source§impl Theme
impl Theme
Sourcepub fn toggle_theme(&self) -> Self
pub fn toggle_theme(&self) -> Self
Toggle the theme from light to dark and vise versa
Trait Implementations§
Source§impl Ord for Theme
impl Ord for Theme
Source§impl PartialOrd for Theme
impl PartialOrd for Theme
impl Copy for Theme
impl Eq for Theme
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnwindSafe for Theme
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