#[non_exhaustive]pub enum Theme {
Auto,
Dark,
Light,
DarkDaltonized,
LightDaltonized,
DarkAnsi,
LightAnsi,
Other(String),
}Expand description
theme. A custom theme’s name is Other.
Docs: theme.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
Matches your terminal’s light or dark background.
Dark
The dark theme.
Light
The light theme.
DarkDaltonized
The dark theme with colorblind-friendly colors.
LightDaltonized
The light theme with colorblind-friendly colors.
DarkAnsi
The dark theme using only your terminal’s ANSI color palette.
LightAnsi
The light theme using only your terminal’s ANSI color palette.
Other(String)
A value this crate doesn’t know, as written.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Theme
impl<'de> Deserialize<'de> for Theme
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Theme
Source§impl Ord for Theme
impl Ord for Theme
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Theme
impl PartialOrd for Theme
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl Forget for Theme
impl Freeze for Theme
impl Move for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin 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